mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
put the menubar at a proper place
This commit is contained in:
parent
3cb744eb6f
commit
7cecbef90b
@ -548,8 +548,10 @@ an example:
|
|||||||
"Do necessary initialization."
|
"Do necessary initialization."
|
||||||
(global-set-key yas/trigger-key 'yas/expand)
|
(global-set-key yas/trigger-key 'yas/expand)
|
||||||
(when yas/use-menu
|
(when yas/use-menu
|
||||||
(global-set-key [menu-bar yasnippet]
|
(define-key-after global-map
|
||||||
(cons "yasnippet" yas/menu-keymap))))
|
[menu-bar yasnippet]
|
||||||
|
(cons "YASnippet" yas/menu-keymap)
|
||||||
|
'buffer)))
|
||||||
|
|
||||||
(defun yas/define (mode key template &optional name)
|
(defun yas/define (mode key template &optional name)
|
||||||
"Define a snippet. Expanding KEY into TEMPLATE.
|
"Define a snippet. Expanding KEY into TEMPLATE.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user