Skip to content

yhzhangjump/doom-emacs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cursor Movement

  • k/l/j/h in normal mode, just like vim
  • Ctrl + k/l/j/h move forward/backward in insert mode
  • Ctrl + p/n/b/f/a/e/d in insert mode, just like emacs
  • 0/$ - jump to the start/end of the current line
  • gg/G - go to the first/last line of the document
  • gj/gk - move cursor down/up (multi-line text)
  • Ctrl + d - move cursor and screen down 1/2 page
  • Ctrl + u - move cursor and screen up 1/2 page
  • Ctrl + n - move cursor down 5 lines
  • Ctrl + p - move cursor up 5 lines
  • Ctrl + f- move cursor forwards by a word
  • Ctrl + b- move cursor backwards by a word

Edit, Search & Replace

  • Ctrl + / - undo
  • Ctrl + r - redo
  • Ctrl + w - delete word in insert mode
  • SPC s-s search string in buffer
  • SPC s-S search string at cursor in buffer
  • SPC s-p search string in project
  • SPC g-r  - revert modification at cursor using git
  • # - search the token at cursor up in the buffer
  • * - search the token at cursor down in the buffer
  • Ctrl + x -SPC/r  select / replace a rectangle
  • :%s/old/new/g - replace all old with new throughout file
  • :%s/old/new/gc - replace all old with new throughout file with confirmation

Navigation

  • + goto the usages of a function
  • - goto the definition of a function
  • C-o goto the older position in jump list
  • C-x h/l switch prev/next workspace buffer
  • SPC , list and switch workspace buffer
  • SPC . find a file in the current directory
  • SPC SPC find a file in the current project
  • :number got line number
  • SPC Tab-] switch workspace
  • SPC o-p/P open treemacs
  • SPC x open scratch buffer

Other

  • Ctrl + c -Ctrl + c/u  comment / uncomment code
  • z a fold/unfold a block (e.g., an if/else block)
  • z r unfold all folded blocks
  • SPC t-l show/hide line numbers
  • SPC t-i show/hide indent guides
  • SPC b-k kill the current buffer
  • SPC q-s/l save and restore session
  • SPC t-f enable/disable flycheck mode
  • SPC w--/+ decrease/increase the buffer height
  • SPC w-</=/> decrease/balance/increase the buffer width
  • SPC p i invalidate projectile cache (e.g., after removing a file)

About

My config for Tmux + Doom Emacs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published