[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Put hide-ifdef on menu-bar?
From: |
Nick Roberts |
Subject: |
Put hide-ifdef on menu-bar? |
Date: |
Sat, 5 Jan 2008 20:17:38 +1300 |
Howa about adding the hide-ifdef commands to the menu bar for mortals,
like myself who can't remember the key bindings?
--
Nick http://www.inet.net.nz/~nickrob
2008-01-05 Nick Roberts <address@hidden>
* progmodes/hideif.el (hide-ifdef-mode-menu): Put hide-ifdef commands
on menu bar.
*** hideif.el.~1.57.~ 2007-07-27 09:22:52.000000000 +1200
--- hideif.el 2008-01-05 20:02:11.000000000 +1300
***************
*** 143,148 ****
--- 143,162 ----
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.")
- Put hide-ifdef on menu-bar?,
Nick Roberts <=