From 47aef245fc7c5fbb624b6fb1d4b4b588d7583e31 Mon Sep 17 00:00:00 2001 From: Nick Roberts Date: Sun, 6 Jan 2008 21:29:20 +0000 Subject: (hide-ifdef-mode-menu): Put hide-ifdef commands on menu bar. --- lisp/progmodes/hideif.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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.") -- cgit v1.2.1