Alex Rivera | Logout

How to quickly delete all text in emacs' minibuffer?

Asked 2011-06-15T09:58:38.740
9

I'm new to Emacs. I run emacs on Windows. When I start Emacs by click the runemacs.exe, I got a welcome window. Now to create a new file and do some experiment editing, I press C-x C-f. Now the minibuffer shows something similar to:

Find file: d:\emacs-23.3\bin

Normally I need to press backspace some time to delete d:\emacs-23\bin and type a new file name like c:\test\a.txt. My question is, how can I quickly delete d:\emacs-23\bin? How do you deal with the welcome window (I don't like it)?

Thanks

Edit
Report

2 Answers

3

You can use backward-kill-sentence that is bound by default to M-DEL

If you use ido-mode (if not you should give a try, it is very useful) you can just begin to type the path or name of the file you want to open and it will give you some proposals.

For the startup message, you can put the following in your .emacs :

(setq inhibit-startup-message t)
answered 2011-06-15T10:20:47.830
0

The answers given are probably the best approach for now but once you've been using emacs for a while you should look at ido-mode. Type M-x ido-mode to start, then use the arrow keys to move quickly around file paths.

answered 2011-06-15T11:23:09.410

Your Answer