help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Getting rid of "Open File" item


From: Barry Margolin
Subject: Re: Getting rid of "Open File" item
Date: Tue, 15 Dec 2009 15:20:30 -0500
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <address@hidden>,
 Mark Tilford <address@hidden> wrote:

> I'm using GNU Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll
> bars) of 2008-09-05 on vernadsky, modified by Ubuntu.
> 
> I'm used to "Open File" meaning "Open an existing file, if there is
> one; otherwise, create a new file and open it."

How did you get used to that?  Emacs's Open File menu works like every 
other GUI application I've ever used, popping up a file browser that 
only allows you to select from existing files.

> The "Open file" item
> in this version of emacs will only open existing files.  Is there a
> way to remove "Open file" from the menu bar (and optionally relabel
> "Visit new file" to "Open file")?

(define-key menu-bar-file-menu [open-file]
            '(menu-item "Open File..." find-file
              ([24 6] . " (C-x C-f)")
              :enable (menu-bar-non-minibuffer-window-p)
              :help "Open a new or existing file, specified by name"))
(define-key menu-bar-file-menu [new-file] nil)

-- 
Barry Margolin, address@hidden
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***


reply via email to

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