Portacle / Emacs

  • If you know your way inside Bash or inside, zsh, there are a lot of keys you know already.

  • Ctrl + a goes to the beginning of the line, Ctrl + e goes to the end.

  • Alt + b to move backwards, and Alt + f to move forwards.

  • Ctrl + p allows you to move around.

  • Ctrl + n moves to the next line.

  • In the REPL you can use Alt + p to get the previous command and Alt + n to get to the next one.

  • Ctrl + k to 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.el and evaluate with C-x C-e

  • You can always enter Ctrl + x bhelp to 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 w and paste is "yanks" so C-y.
  • Start selecting text with Ctrl + SPACE, move the selection with Alt + f and stop it again with Ctrl + SPACE.
  • Ctrl x u to undo.
  • Ctrl s to search, press it several times to navigate through the results.

Lisp Evaluation:

  • M-x slime to start the SLIME repl.
  • Ctrl c Ctrl c slime-compile-defun
  • Ctrl c Ctrl k slime-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-mode or M-x en-p.

  • Ctrl x Ctrl f to visit new file (opening).
  • Ctrl x Ctrl s to save file. (Ctrl x is for global commands and Ctrl c is 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