emacs -nw
You can add a file tree to the left hand side using a community package. However there are better ways of dealing with this
- an object in emacs that holds text and information
- it may or may not be displayed in a window
- There are a number of special buffers
- scratch - like a blank sheet of paper
- Messages
- Warnings
global-tab-line-mode
You can switch between buffers
C-x b
C-x k
You can kill multiples with
M-x kill-some-buffers
- A window is like a "pane". It always displays a buffer. It may be split.
- A window displays a buffer
- To split vertically
C-x 2
- move to the "other" window
C-x o
- to find a file in another window
C-x 4 f
- to delete the window that you are in
C-x 0
- to delete all other windows
C-x 1
Frames each have their own toolbars and menus. Most folks dont use multiple frames. You will probably used multiple window
You will of ten see people write out keybindings in a very specific format. You have some sort of special key followed by a dash followed by a character. Eg C-s or M-x
- C - Ctrl
- M - Alt (meta in emacs lingo)
- S - Shift
- s - Super (windows key)
- C-x - This is a prefix for of Emacs' primary key bindings
- C-c - this is considered to be a combination of bindings created by active major and minor modes or by the user
C-x C-f
- find file commandC-x C-s
- save the current bufferC-x C-w
- save buffer to a different file (save as)
C-x b
- switch bufferC-x C-b
- open a buffer list in its own windowC-x <-
- cycle previous bufferC-x ->
- cycle to next buffer
In emacs to "kill" text means to "cut" it.
C-w
- copy selection to kill ring and delete textC-y
- yank (paste) the most recent item in the kill ring
if you must have the old C-c, C-x C-v copy cut paste behavior, you can turn it on . If you go to the options menu in emacs, you can click the use CUA keys. Or you can use M-x cua-mode
$ Undo and Redo
C-_
orC-/
- in evil mode redo is C-M-_ (C-M-S--) ie control alt shift dash
- C-g quits (esc the way I have evil mode set up)
- RUn commmand describe-bindings
- Run the command describe-key (C-h k)
- The whole emacs manual is built in to emacs and you can find help on anything.
- If you go to the help menu, you have access to everything
- Customization UI
- shows you options for emacs plus any installed packages
M-x customize
- shows you options for emacs plus any installed packages