How I use Emacs

This is a work in progress

Please do not widely link to it yet.

Emacs is an extensible and customizable text editor that is popular among certain programming language communities. Emacs is also suited for taking notes (à la. orgmode). There are various “configuration kits” for Emacs. I use doom-emacs.

This article provides a brief overview of my workflow. However if you are new to Emacs, after installing these programs you should familiarize yourself with Vim keybindings (there are sevaral vim tutorials online for this) before proceeding.

Preliminaries

The most important shortcut to know is SPC :, which allows you to run any arbitrary command. If you want to find out which function a particular shortcut invokes, use SPC h k followed by that shortcut. For the obverse—to find out the shortcut (and documentaion) for a particular function—use SPC h f.

Files & Buffers

Open a file:

Manage buffers:

Layout

Window management

Workspace management

Think of emacs workspaces as “virtual desktops”.

Git

doom-emacs uses magit. SPC g g brings the magit-status buffer. The following shortcuts work on this buffer:

Code navigation

See also: tools/lookup

Editing

Visual mode

After having selected some text:


Edit me
This is a work in progress

Please do not widely link to it yet.