unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15599: [PATCH] Inferior Lisp Mode Menu
@ 2013-10-12 17:08 John Anthony
  2013-10-12 17:21 ` John Anthony
  2013-10-19  2:48 ` Glenn Morris
  0 siblings, 2 replies; 13+ messages in thread
From: John Anthony @ 2013-10-12 17:08 UTC (permalink / raw)
  To: 15599

[-- Attachment #1: Type: text/plain, Size: 301 bytes --]

I have put together a menu for inferior-lisp mode, which is one of the
two listed in etc/TODO (line 66, I already supplied a patch for
text-mode). Please do let me know if there's anything I could have
done better as I'm planning to make sure all major modes have
appropriate menus.

-- 
John Anthony

[-- Attachment #2: inf-lisp-mode-menu.patch --]
[-- Type: text/x-diff, Size: 954 bytes --]

diff --git a/lisp/progmodes/inf-lisp.el b/lisp/progmodes/inf-lisp.el
index d73e948..4cda3fe 100644
--- a/lisp/progmodes/inf-lisp.el
+++ b/lisp/progmodes/inf-lisp.el
@@ -91,6 +91,19 @@ mode.  Default is whitespace followed by 0 or 1 single-letter colon-keyword
     (define-key map "\C-c\C-v" 'lisp-show-variable-documentation)
     map))
 
+(easy-menu-define
+  inferior-lisp-menu
+  inferior-lisp-mode-map
+  "Inferior Lisp Menu"
+  `("Inf-Lisp"
+    ["Eval Last Sexp" lisp-eval-last-sexp t]
+    ["Load File" lisp-load-file t]
+    ["Compile File" lisp-compile-file t]
+    ["Show Arglist" lisp-show-arglist t]
+    ["Describe Sym" lisp-describe-sym t]
+    ["Show Fucntion Doc" lisp-show-function-documentation t]
+    ["Show Variable Doc" lisp-show-variable-documentation t]))
+
 ;;; These commands augment Lisp mode, so you can process Lisp code in
 ;;; the source files.
 (define-key lisp-mode-map "\M-\C-x"  'lisp-eval-defun)     ; Gnu convention

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-10-25  2:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-12 17:08 bug#15599: [PATCH] Inferior Lisp Mode Menu John Anthony
2013-10-12 17:21 ` John Anthony
2013-10-12 19:16   ` Stefan Monnier
2013-10-19  2:48 ` Glenn Morris
2013-10-22  0:56   ` John Anthony
2013-10-22 14:23     ` Stefan Monnier
2013-10-24  7:25       ` Glenn Morris
2013-10-23 21:47   ` John Anthony
2013-10-24  7:20     ` Glenn Morris
2013-10-24 14:05       ` John Anthony
2013-10-25  2:36         ` Glenn Morris
2013-10-24 14:33       ` Stefan Monnier
2013-10-24 15:00         ` Drew Adams

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).