Skip to content

Instantly share code, notes, and snippets.

@plcosta
Last active March 15, 2021 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plcosta/1099daf41d2f5114052f89d82799eac4 to your computer and use it in GitHub Desktop.
Save plcosta/1099daf41d2f5114052f89d82799eac4 to your computer and use it in GitHub Desktop.
Emacs Doom - Shortcuts and Tips

Emacs Shortcuts

All Vim style shortcuts (evil module)

Shortcut Description - Shortcut Description
:w save file - :e + file path open or edit file
:q quit file -
v visual mode

Files

Shortcut Description - Shortcut Description
SPC f f find and open file - SPC f S save file
SPC : run command (M-x) -

Projects

  • SPC p p - switch project and open files in the project
  • SPC SPC - open file in the project
  • SPC p f - open file in the project

Buffer

  • SPC b N - new empty buffer
  • SPC b B - switch buffer (opened files)
  • SPC b k - kill buffer

Another shortcuts

  • SPC f P - Open config files

  • SPC q R - Restart Emacs

Dired (Directory Editor) Shortcuts

  • SPC SPC - open dired
  • h - back to parent
  • l - open directory or file
  • d - delete fie, adding flag
  • u - remove the deletion flag
  • x - delete flagged files

Editor

  • C-b - scroll/move back one full screen
  • C-f - scroll/move forward one full screen
  • C-d - scroll/move forward 1/2 a screen
  • C-u - scroll/move back 1/2 a screen

Code

Shortcut Description - Shortcut Description
z z Center cursor on screen - z a togle fold

Modules

  • (dired +ranger +icons) - To show icons in dired and use shortcuts like h,l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment