Mercurial > emacs
changeset 79699:1ad384d8d37a
(hide-ifdef-mode-menu): Put hide-ifdef commands
on menu bar.
author | Nick Roberts <nickrob@snap.net.nz> |
---|---|
date | Sun, 06 Jan 2008 21:29:20 +0000 |
parents | 30e5526246cd |
children | a0995ad442d5 |
files | lisp/progmodes/hideif.el |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/hideif.el Sun Jan 06 21:27:51 2008 +0000 +++ b/lisp/progmodes/hideif.el Sun Jan 06 21:29:20 2008 +0000 @@ -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.")