put the menubar at a proper place

This commit is contained in:
Zhang Chiyuan 2008-03-06 10:05:15 +00:00
parent 3cb744eb6f
commit 7cecbef90b

View File

@ -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.