changeset 79625:63628cd913b8

(asm-mode-map): Add a major mode menu.
author Dan Nicolaescu <dann@ics.uci.edu>
date Tue, 25 Dec 2007 20:00:12 +0000
parents 23d24b6712f6
children d64fd512c6e3
files lisp/ChangeLog lisp/progmodes/asm-mode.el
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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  <dann@ics.uci.edu>
+
+	* progmodes/asm-mode.el (asm-mode-map): Add a major mode menu.
+
 2007-12-25  Richard Stallman  <rms@gnu.org>
 
 	* comint.el (comint-mode-map): Explicitly bind `delete' and `kp-delete'
--- 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.")