How to quickly delete all text in emacs minibuffer?

I am new to Emacs. I am running Emacs on Windows. When I start Emacs,, runemacs.exeI get a welcome window. Now, to create a new file and do some experimental editing, I click C-x C-f. Now the minibuffer shows something similar to:

Find file: d:\emacs-23.3\bin

Usually I need to press the backspace key to delete d:\emacs-23\binand enter a new file name, for example c:\test\a.txt. I have a question, how can I quickly remove it d:\emacs-23\bin? How do you deal with the welcome window (I don't like this)?

thank

+5
source share
6 answers

.

d:\emacs-23.3\bin\c:\test\a.txt
+4

backward-kill-sentence C-x DEL.

C-a C-k, ,

  • CTRL .

( ) , . , .

+11

unix- ~ / . Emacs . ~ , / root.

: , Find file: /var/tmp/etc/list/foo/bar/, ~/.emacs, dot-emacs . .

+3

backward-kill-, M-DEL

ido-mode ( , , ), , , .

.emacs:

(setq inhibit-startup-message t)
+2

, , , emacs - , ido-mode, M-x ido-mode, , , .

0

I usually use the following lisp code to kill the current line with a single key combination. This will delete the entire line and move to the beginning of the cursor.

(defun my-kill-line ()
  "kill current line. you don't have to put point at the beginning of line."
  (interactive)
  (copy-kill 'kill 'line))

The best approach (as soon as you become familiar with using Emacs) is to use some kind of package to simplify file navigation. Take a look at the steering wheel (or ido), which I personally prefer the steering wheel and projectile. By combining helm + projectile, you can quickly open files and easily switch between files located in different directories / projects.

0
source

All Articles