mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +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."
|
||||
(global-set-key yas/trigger-key 'yas/expand)
|
||||
(when yas/use-menu
|
||||
(global-set-key [menu-bar yasnippet]
|
||||
(cons "yasnippet" yas/menu-keymap))))
|
||||
(define-key-after global-map
|
||||
[menu-bar yasnippet]
|
||||
(cons "YASnippet" yas/menu-keymap)
|
||||
'buffer)))
|
||||
|
||||
(defun yas/define (mode key template &optional name)
|
||||
"Define a snippet. Expanding KEY into TEMPLATE.
|
||||
|
Loading…
x
Reference in New Issue
Block a user