Mercurial > emacs
comparison lisp/emacs-lisp/lisp-mode.el @ 94497:2f4d6806f156
(lisp-mode-map): Add menu.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Wed, 30 Apr 2008 16:10:05 +0000 |
parents | 72eb648a4690 |
children | 90a2847062be |
comparison
equal
deleted
inserted
replaced
94496:38eb904fa638 | 94497:2f4d6806f156 |
---|---|
429 (setq imenu-case-fold-search nil) | 429 (setq imenu-case-fold-search nil) |
430 (run-mode-hooks 'emacs-lisp-mode-hook)) | 430 (run-mode-hooks 'emacs-lisp-mode-hook)) |
431 (put 'emacs-lisp-mode 'custom-mode-group 'lisp) | 431 (put 'emacs-lisp-mode 'custom-mode-group 'lisp) |
432 | 432 |
433 (defvar lisp-mode-map | 433 (defvar lisp-mode-map |
434 (let ((map (make-sparse-keymap))) | 434 (let ((map (make-sparse-keymap)) |
435 (menu-map (make-sparse-keymap "Lisp"))) | |
435 (set-keymap-parent map lisp-mode-shared-map) | 436 (set-keymap-parent map lisp-mode-shared-map) |
436 (define-key map "\e\C-x" 'lisp-eval-defun) | 437 (define-key map "\e\C-x" 'lisp-eval-defun) |
437 (define-key map "\C-c\C-z" 'run-lisp) | 438 (define-key map "\C-c\C-z" 'run-lisp) |
439 (define-key map [menu-bar lisp] (cons "Lisp" menu-map)) | |
440 (define-key menu-map [run-lisp] | |
441 '(menu-item "Run inferior Lisp" run-lisp | |
442 :help "Run an inferior Lisp process, input and output via buffer `*inferior-lisp*'")) | |
443 (define-key menu-map [ev-def] | |
444 '(menu-item "Eval defun" lisp-eval-defun | |
445 :help "Send the current defun to the Lisp process made by M-x run-lisp")) | |
446 (define-key menu-map [ind-sexp] | |
447 '(menu-item "Indent sexp" indent-sexp | |
448 :help "Indent each line of the list starting just after point")) | |
438 map) | 449 map) |
439 "Keymap for ordinary Lisp mode. | 450 "Keymap for ordinary Lisp mode. |
440 All commands in `lisp-mode-shared-map' are inherited by this map.") | 451 All commands in `lisp-mode-shared-map' are inherited by this map.") |
441 | 452 |
442 (defun lisp-mode () | 453 (defun lisp-mode () |