[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I reorder the items of the menubar?

From: lawrence mitchell
Subject: Re: How can I reorder the items of the menubar?
Date: Wed, 18 Sep 2002 17:25:38 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/20.4 (sparc-sun-solaris2.6)

Keira wrote:

> I've used emacs before and it used to be that the first item on the
> menubar was "Buffers", personally, I like having it there, besides
> that a few other things where different, the filemenus for example.

> How can I make the new emacs (21.2.1) behave the same as the old emacs
> (20 or 19 something...)

It's possible to do this, though slightly involved, so bear with
me.  First off, if you don't feel comfortable with compiling
Emacs from source (and don't have at least a minimal knowledge of
Emacs lisp), it might be too much effort.

Basically, though, the procedure is as follows:
i) get the Emacs-21 sources --- available from all
ii) Unpack them, and read the installation instructions.
iii) Find the file menu-bar.el (probably in the lisp/
     subdirectory of the Emacs source).
iv) Redefine the order in which the menu-bar is constructed.
    (look for lines of the form
      `(cons "Tools" menu-bar-tools-menu)' --- for (e.g.) the Tools
    Menu bars are "pushed" onto a menu-bar stack, hence, if you
    want a menu to appear last, you should move its definition
    towards the top of the file and vice versa.
v) After you've changed menu-bar.el to your satisfaction, save
vi) Follow the installation instructions to compile and install
    Emacs for your system.

Alternately stay with Emacs 20 (unless you have any dying need to
use Emacs 21). ;)
lawrence mitchell <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]