Mercurial > emacs
diff lisp/progmodes/asm-mode.el @ 94206:10db3330138c
* progmodes/asm-mode.el (asm-mode-map):
* progmodes/hideif.el (hide-ifdef-mode-menu): Add :help.
* progmodes/m4-mode.el (m4-mode-map): Add menu.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Mon, 21 Apr 2008 05:02:06 +0000 |
parents | 1e3a407766b9 |
children | 52b7a8c22af5 |
line wrap: on
line diff
--- a/lisp/progmodes/asm-mode.el Mon Apr 21 02:02:01 2008 +0000 +++ b/lisp/progmodes/asm-mode.el Mon Apr 21 05:02:06 2008 +0000 @@ -81,12 +81,15 @@ (define-key map "\C-m" 'newline-and-indent) (define-key map [menu-bar] (make-sparse-keymap)) (define-key map [menu-bar asm-mode] (cons "Asm" map)) + (define-key map [comment-region] + '(menu-item "Comment Region" comment-region + :help "Comment or uncomment each line in the region")) + (define-key map [newline-and-indent] + '(menu-item "Insert Newline and Indent" newline-and-indent + :help "Insert a newline, then indent according to major mode")) (define-key map [asm-colon] - '("Insert Colon" . asm-colon)) - (define-key map [comment-region] - '("Comment Region" . comment-region)) - (define-key map [newline-and-indent] - '("Insert Newline and Indent" . newline-and-indent)) + '(menu-item "Insert Colon" asm-colon + :help "Insert a colon; if it follows a label, delete the label's indentation")) map) "Keymap for Asm mode.")