Reputation: 11
I need the command that can open a file without closing emacs
I have tried C-X C-F
Upvotes: 0
Views: 11657
Reputation: 21
Emacs distinguishes between uppercase and lowercase letters.
Emacs doesn't pay attention to the actual pressing of the shift key but it pays attention to the receipt of the key combination, so if you press C-F
it doesn't matter whether you physically pressed ctrl+shift+f
or caps-lock
followed by ctrl+f
.
The exact combination is C-x C-f
, without shift or caps-lock.
Upvotes: 1
Reputation: 91
The right way is to hold your 'Ctrl' key and press 'x' followed by 'f', Make sure your capslock is off. and be in editing mode.
Upvotes: 0
Reputation: 354
You were on the right track, but it's C-x C-f
rather than the capitalized form C-X C-F
which would imply the Shift
key is held in addition to Control
. So to be explicit, you want to hold Control
down while pressing x
and f
in succession.
The C-x C-f
sequence will invoke the find-file
command under vanilla emacs, which lets you choose a file to open in a new buffer.
See also Emacs Manual Section 18.2 Visiting Files.
Upvotes: 3