From: Dan Nicolaescu Date: Wed, 30 Apr 2008 16:10:05 +0000 (+0000) Subject: (lisp-mode-map): Add menu. X-Git-Tag: emacs-pretest-23.0.90~5925 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=458c4642c55b5920ec0a678d1aa9541e11f534fe;p=emacs.git (lisp-mode-map): Add menu. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1ccaa792ef3..cce6cee7a71 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2008-04-30 Dan Nicolaescu + + * emacs-lisp/lisp-mode.el (lisp-mode-map): Add menu. + 2008-04-30 Stefan Monnier * progmodes/octave-mod.el (octave-help): New function. diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 48f0b9b7860..9faef35d610 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -431,10 +431,21 @@ if that value is non-nil." (put 'emacs-lisp-mode 'custom-mode-group 'lisp) (defvar lisp-mode-map - (let ((map (make-sparse-keymap))) + (let ((map (make-sparse-keymap)) + (menu-map (make-sparse-keymap "Lisp"))) (set-keymap-parent map lisp-mode-shared-map) (define-key map "\e\C-x" 'lisp-eval-defun) (define-key map "\C-c\C-z" 'run-lisp) + (define-key map [menu-bar lisp] (cons "Lisp" menu-map)) + (define-key menu-map [run-lisp] + '(menu-item "Run inferior Lisp" run-lisp + :help "Run an inferior Lisp process, input and output via buffer `*inferior-lisp*'")) + (define-key menu-map [ev-def] + '(menu-item "Eval defun" lisp-eval-defun + :help "Send the current defun to the Lisp process made by M-x run-lisp")) + (define-key menu-map [ind-sexp] + '(menu-item "Indent sexp" indent-sexp + :help "Indent each line of the list starting just after point")) map) "Keymap for ordinary Lisp mode. All commands in `lisp-mode-shared-map' are inherited by this map.")