# HG changeset patch # User Dan Nicolaescu # Date 1198612812 0 # Node ID 63628cd913b88efd00b79b3a8d427c9cc866a75b # Parent 23d24b6712f6861a7c7a4c5402ceedda4d13040b (asm-mode-map): Add a major mode menu. diff -r 23d24b6712f6 -r 63628cd913b8 lisp/ChangeLog --- a/lisp/ChangeLog Tue Dec 25 16:56:28 2007 +0000 +++ b/lisp/ChangeLog Tue Dec 25 20:00:12 2007 +0000 @@ -1,3 +1,7 @@ +2007-12-25 Dan Nicolaescu + + * progmodes/asm-mode.el (asm-mode-map): Add a major mode menu. + 2007-12-25 Richard Stallman * comint.el (comint-mode-map): Explicitly bind `delete' and `kp-delete' diff -r 23d24b6712f6 -r 63628cd913b8 lisp/progmodes/asm-mode.el --- a/lisp/progmodes/asm-mode.el Tue Dec 25 16:56:28 2007 +0000 +++ b/lisp/progmodes/asm-mode.el Tue Dec 25 20:00:12 2007 +0000 @@ -79,6 +79,14 @@ (define-key map "\C-c;" 'comment-region) (define-key map "\C-j" 'newline-and-indent) (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 [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)) map) "Keymap for Asm mode.")