Damien Gonot
Home Blog Notes About

Doom Emacs

Homepage / Notes / Computer Science / Text editors / Emacs / Doom Emacs

Official repo: https://github.com/hlissner/doom-emacs

Buffers

Doom-esque commands:

Text editing

evil-snipe

https://github.com/hlissner/evil-snipe

once occurrence is found, can jump to the next one with s, previous with S

avy

https://github.com/abo-abo/avy

Similar to vim-easymotion

https://www.youtube.com/watch?v=zar4GsOBU0g&list=PLhXZp00uXBk4np17N39WvB80zgxlZfVwj&index=7

evil-multiedit

https://github.com/hlissner/evil-multiedit

M-d select word under cursor

M-d M-d select word under cursor and select next occurrence as well

M-d M-D select word under cursor and select previous occurrence as well

after a visual-mode selection was more, R to select all occurrences

after matches are highlighted, move between them with C-n for next, C-p for previous

RET to exclude or include a match in the selection

Swiper

Windows

C-w and SPC w interchangeable

vim-esque commands:

Doom-esque commands:

Workspaces

Official help: https://github.com/hlissner/doom-emacs/tree/master/modules/feature/workspaces

vim-esque commands:

Doom-esque commands:

Terminals

Eshell

Vterm

Projects

(Using projectile)

Dired

Magit

A git client for Emacs!

C-c C-c or ZZ or :wq to exit commit edit mode

Forge

Work with Git forges, such as Github and Gitlab, from the comfort of Magit and the rest of Emacs.

Setup

Create a .authinfo.gpg file (Emacs seamlessly encrypts and decrypts .gpg files!) in the home directory with this info (for GitHub): machine api.github.com login {username}^forge password {token}

Usage

Deft

SPC n d open Deft UI

Snippets

https://github.com/hlissner/doom-snippets

Flycheck

On-the-fly syntax checking

SPC c x show error list for current buffer

dap-mode

A debugger using lsp-mode

Eval

SPC c e to evaluate buffer / region and display result in an overlay

File Templates

https://github.com/hlissner/doom-emacs/issues/2134

Spell checkers (aspell)

csv-mode

Resources

Emacs Doom Episode 1 - Getting Started: https://www.youtube.com/watch?app=desktop&v=rCMh7srOqvw&list=PLhXZp00uXBk4np17N39WvB80zgxlZfVwj&index=2&t=0s

Commentary around config: https://zzamboni.org/post/my-doom-emacs-configuration-with-commentary/

Commentary around config #2: https://tecosaur.github.io/emacs-config/config.html

Google Calendar and org-mode: https://cestlaz.github.io/posts/using-emacs-26-gcal