* Getting rid of "Open File" item
@ 2009-12-14 20:15 Mark Tilford
0 siblings, 0 replies; 2+ messages in thread
From: Mark Tilford @ 2009-12-14 20:15 UTC (permalink / raw
To: help-gnu-emacs
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." 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")?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Getting rid of "Open File" item
[not found] <mailman.12954.1260822153.2239.help-gnu-emacs@gnu.org>
@ 2009-12-15 20:20 ` Barry Margolin
0 siblings, 0 replies; 2+ messages in thread
From: Barry Margolin @ 2009-12-15 20:20 UTC (permalink / raw
To: help-gnu-emacs
In article <mailman.12954.1260822153.2239.help-gnu-emacs@gnu.org>,
Mark Tilford <ralphmerridew@gmail.com> 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, barmar@alum.mit.edu
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 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-15 20:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-14 20:15 Getting rid of "Open File" item Mark Tilford
[not found] <mailman.12954.1260822153.2239.help-gnu-emacs@gnu.org>
2009-12-15 20:20 ` Barry Margolin
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.