diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2008-01-06 21:29:20 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2008-01-06 21:29:20 +0000 |
commit | 47aef245fc7c5fbb624b6fb1d4b4b588d7583e31 (patch) | |
tree | 2a8fc3ae545a7efe8b41f74b890794197761f548 | |
parent | 8474779c252cf3144f626965a60bca4e113fc873 (diff) | |
download | emacs-47aef245fc7c5fbb624b6fb1d4b4b588d7583e31.tar.gz |
(hide-ifdef-mode-menu): Put hide-ifdef commands
on menu bar.
-rw-r--r-- | lisp/progmodes/hideif.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lisp/progmodes/hideif.el b/lisp/progmodes/hideif.el index bb791b18c1b..662b2597ce7 100644 --- a/lisp/progmodes/hideif.el +++ b/lisp/progmodes/hideif.el @@ -143,6 +143,20 @@ map) "Keymap used with `hide-ifdef-mode'.") +(easy-menu-define hide-ifdef-mode-menu hide-ifdef-mode-map + "Menu for `hide-ifdef-mode'." + '("Hide-Ifdef" + ["Hide some ifdefs" hide-ifdefs t] + ["Show all ifdefs" show-ifdefs t] + ["Hide ifdef block" hide-ifdef-block t] + ["Show ifdef block" show-ifdef-block t] + ["Define a variable" hide-ifdef-define t] + ["Define an alist" hide-ifdef-set-define-alist t] + ["Use an alist" hide-ifdef-use-define-alist t] + ["Undefine a variable" hide-ifdef-undef t] + ["Toggle read only" hide-ifdef-toggle-read-only + :style toggle :selected hide-ifdef-read-only])) + (defvar hide-ifdef-hiding nil "Non-nil when text may be hidden.") |