/dotfiles

Backup of config files (mostly emacs).

Primary LanguageEmacs Lisp

https://user-images.githubusercontent.com/24259317/131217680-fd0b80f0-6498-4c2d-995c-aaef97e1ab3c.png

Emacs Controls

Buffer

C-x C-bList buffers
C-x bReturn to buffer

Open file

C-x C-fOpen file
C-x 4Open file in new window

Dired

C-x dEnter dired
C-oOpen in dire targeted file in another window
C-M-Jivy-immediate-done (for renaming files that have name clash)

Windows

C-x 0Close window
C-x oSwitch window
C-w C-sCreate Horizontal split
C-w C-vCreate vertical split
C-w C-lSwitch left
C-w C-rSwitch right
C-x 2Create new window (verticle)
C-x 3Create new window (horizontal)

Web-mode

C-jemmet complete

eshell

C-c M-oClear screen

evil

C-oretrace jump backwards
C-iretrace jump forwards

evil-numbered

C-c + Increment next number
C-c -Decrement next number

evil-magit

sstage
uunstage
ccommit
Ppush
ddiff
iignore
ffetch
C-c C-cClose commit message
C-x v ~vc-revision-other-window
C-c M-gmagit-file-dispatch

evil-dired

RETOpen file
oOpen file in another window
+Create directory
RRename/move
CCopy
dDelete
mMark
uUnmark
xDelete

org-mode

C-c C-tCycle through tag stage.
C-c C-,Insert template (src block) (org-insert-structure-template)
C-c C-qSet tags.
C-c C-oFollow link.
C-c lStore link.
C-c C-lAdd link.
C-c C-x C-i(org-clock-in)
C-c C-x C-o(org-clock-out)
C-c C-s(org-schedule)
C-c C-d(org-deadline)
C-x n s(org-narrow-to-subtree)
C-x n w(widen)
C-c *(org-toggle-heading)
C-c C-b(org-backward-heading-same-level)
C-c C-f(org-forward-heading-same-level)
C-c C-x C-aArchive task

org-mode-agenda

xClose org-mode-agenda-list.

Editing

zaToggle bracket folding
C-x u(undo-tree-visualize)
C-c nflycheck-next-error

Bookmarks

C-x r lList all bookmark
C-x r mSet boomark
C-x r bJump to bookmark

Misc

C-x C-uUpcase region
C-x C-lDowncase region
C-gKill command input
C-x C-cQuit emacs
C-x gOpen magit-status
C-x C-hSelect all
C-M-\Auto indent region
C-u M-xeshell start second eshell instance
C-c / gGoogle selected region
C-u M-!Execute command, pipe into buffer

Help

M-:major-mode Get major mode
C-h kGet function behind key sequence
C-h aSearch for pattern
C-h iShow documentation

Mark

C-x jxref-find-definitions
C-x pxref-pop-marker-stack

projectile

C-c p s gGrep in project
C-c p fFind file
C-c p cExecute Make

ibuffer

dibuffer-mark-for-delete
xibuffer-do-kill-on-deletion-marks

elfeed

uelfeed-search-untag-all-unread (mark-read)
RETelfeed-search-browse-url (open in browser)

lsp

C-l T lToggle code-lens overlays
C-l g dFind declarations
C-l g rFind references
C-l g hCall hierachy
C-l G gPeek definition
C-l r rRefactor
C-l h hDescribe type (Typescript)

ace-window

C-x C-oace-window
xdelete window
mswap windows
Mmove window
ccopy window
jselect buffer
nselect the previous window
uselect buffer in the other window
csplit window fairly, either vertically or horizontally
vsplit window vertically
bsplit window horizontally
omaximize current window
?show these command bindings

clojure

C-c M-pcider-send-sexp-to-repl
C-c C-j C-eInsert exp into repl
C-c C-kCompile buffer
C-c M-n M-nSwitch to ns of buffer
C-x C-eEvaluate last sexp
C-c C-d C-dDisplay doc
C-c C-d aClojure apropo
C-c C-d C-aSearch for function name
C-c C-uClear REPL
C-c C-v C-dEval top level sexp
g zSwitch between REPL and Clojure
g dgoto definiton
KView documentation
C-u C-c C-zswitch-buffer-to-repl (and set namespace)
C-c M-t vTracing
C-c M-iInspect exp
cider-enlighten-mode
C-c C-t tRun test
C-c C-t nRun namespace tests
C-c C-t bShow test report
C-c C-qQuit repl
C-c C-ucider-undef
C-c SPCclojure-align
C-c C-v C-wclojure-eval-last-sexp-and-replace

counsel

M-x M-pLast used command

aqua

C-nNext
C-pPrevious
C-aBegining
C-eEnd
C-kKill line
C-dKill charater at point
C-mEnter
C-iTab
s-dKill next word

paredit

C-M-nparedit-forward-up
C-M-fparedit-forward
C-M-dparedit-forward-down
C-M-bparedit-backwards
C-M-pparedit-backwards-down
C-M-uparedit-backwards-up
C-kparedit-kill
C-M-rightparedit-backward-barf-sexp
C-M-leftparedit-backwards-slurp-sexp
C-leftparedit-forward-barf-sexp
C-rightparedit-forward-slurp-sexp