Portacle / Emacs
-
If you know your way inside Bash or inside, zsh, there are a lot of keys you know already.
-
Ctrl + agoes to the beginning of the line,Ctrl + egoes to the end. -
Alt + bto move backwards, andAlt + fto move forwards. -
Ctrl + pallows you to move around. -
Ctrl + nmoves to the next line. -
In the REPL you can use
Alt + pto get the previous command andAlt + nto get to the next one. -
Ctrl + kto erase the line.
-
Buffer management : take a look at the buffer menu in Portacle / Emacs.
-
Switch between windows :
Ctrl + x o -
(define-key slime-repl-mode-map (kbd "C-c C-z") 'other-window) -
To write in
config/user.eland evaluate with C-x C-e -
You can always enter
Ctrl + x bhelpto display some help with the keybindings -
Ctrl X 1: The current window takes the whole space. -
Ctrl X 2: divide frame horizontally.
Ctrl g: when you began to type a command (but it was the wrong one!)- "Copy" actually is
Alt wand paste is "yanks" soC-y. - Start selecting text with
Ctrl + SPACE, move the selection withAlt + fand stop it again withCtrl + SPACE. Ctrl x uto undo.Ctrl sto search, press it several times to navigate through the results.
Lisp Evaluation:
M-x slimeto start the SLIME repl.Ctrl c Ctrl cslime-compile-defunCtrl c Ctrl kslime-compile-and-load-file
- Installing packages is done using
M-x package-install.
Code completion and parenthesis configuration:
- You can install company-mode to help you with code completion, customize its behavior as well.
- You can install paredit-mode to complete parenthesis. Enable it with
M-x enable-paredit-modeorM-x en-p.
Ctrl x Ctrl fto visit new file (opening).Ctrl x Ctrl sto save file. (Ctrl xis for global commands andCtrl cis for local commands).
Git & Magit
-
You can install magit to make it easier to work with Git within Emacs.
-
Call the git package with
M-x magit-status. -
TODO: learn to use Git with Magit and note some keyboard shortcuts. Getting Started