* Removing outline mode menus
@ 2003-11-16 1:22 Sean Richards
2003-11-16 23:38 ` Stefan Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Sean Richards @ 2003-11-16 1:22 UTC (permalink / raw)
I have just started using outline mode for Python and Latex and once I
figured how to set it up it works great. However I would like outline
mode not to add menus to the menu bar as I only use some keybindings to
open and close folds. Is this possible ?
Sean
[GNU Emacs 21.3.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)]
--
"Hver sin smak", sa vintapperen, han drakk mens de andre sloss.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Removing outline mode menus
2003-11-16 1:22 Removing outline mode menus Sean Richards
@ 2003-11-16 23:38 ` Stefan Monnier
2003-11-17 1:11 ` Sean Richards
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2003-11-16 23:38 UTC (permalink / raw)
> I have just started using outline mode for Python and Latex and once I
> figured how to set it up it works great. However I would like outline
> mode not to add menus to the menu bar as I only use some keybindings to
> open and close folds. Is this possible ?
You can do something like
(define-key outline-mode-menu-bar-map [headings] nil)
(define-key outline-mode-menu-bar-map [show] nil)
(define-key outline-mode-menu-bar-map [hide] nil)
But make sure this is run after outline.el is loaded.
Or you can just do
(setq outline-mode-menu-bar-map (make-sparse-keymap))
before outline.el is loaded. In Emacs-CVS, those three menus have been
collapsed (in the outline-minor-mode only) into one called "Outline" since
the use of three menus for a single minor mode seemed way out of line to me.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Removing outline mode menus
2003-11-16 23:38 ` Stefan Monnier
@ 2003-11-17 1:11 ` Sean Richards
0 siblings, 0 replies; 3+ messages in thread
From: Sean Richards @ 2003-11-17 1:11 UTC (permalink / raw)
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> I have just started using outline mode for Python and Latex and once I
>> figured how to set it up it works great. However I would like outline
>> mode not to add menus to the menu bar as I only use some keybindings to
>> open and close folds. Is this possible ?
>
> You can do something like
>
> (define-key outline-mode-menu-bar-map [headings] nil)
> (define-key outline-mode-menu-bar-map [show] nil)
> (define-key outline-mode-menu-bar-map [hide] nil)
>
> But make sure this is run after outline.el is loaded.
Thanks Stefan that did the trick. I used
(eval-after-load "outline" ......
Is that the preferred method for running something after a mode has been
loaded?
> In Emacs-CVS, those three menus have been collapsed (in the
> outline-minor-mode only) into one called "Outline" since the use of
> three menus for a single minor mode seemed way out of line to me.
Good idea, seems an overkill to have 3 separate menus for a minor-mode
I use a slightly modified version of a function you posted a few years
ago to toggle the visibility of an outline entry. I use Viper mode and
have mapped that function to "SPC" (not in insert mode obviously) makes
using outline-mode very nice. If anyone is interested in the function
you can find it here
http://groups.google.co.nz/groups?selm=39dce10c%241%40tequila.cs.yale.edu
Cheers, Sean
--
"Hver sin smak", sa vintapperen, han drakk mens de andre sloss.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-11-17 1:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-16 1:22 Removing outline mode menus Sean Richards
2003-11-16 23:38 ` Stefan Monnier
2003-11-17 1:11 ` Sean Richards
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).