-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreference.clj
53 lines (41 loc) · 1.78 KB
/
reference.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
;; Quest's Emacs Reference
;; This page records various useful keybindings and tips.
;; It's a "living document", meaning that I update it upon mastery of a given tip.
;; Written in Clojure for edn highlighting; Emacs never loads this file itself
;; TODO: git porcelain bindings
;; -------~~~=== INVESTIGATORY ===~~~-------
;; ACTIONS WHICH REVEAL INFORMATION
(def investigatory-bindings
{"C-h C-h" "Help about help"
"C-h k cmd-name" "Find doc for command with given name"
"C-h a cmd-name-rgx" "Find doc for command name matching regex"
"C-h c cmd-name" "Find doc for command by name"
"C-h f fn-name" "Find doc for function by name (helm autocomplete enabled)"
"C-h i" "Open top level of info mode tree"
"M-x sp-cheat-sheet" "Show smartparens cheat sheet"})
(def google-bindings
{"C-x g g query" "Googles input string (defaults to point)"
"C-x g s" g "Googles string under point"})
;; -------~~~=== TRANSFORMATIVE ===~~~-------
;; ACTIONS WHICH ALTER SUBJECT DATA
(def line-bindings
{"C-k" "Kill to end of line"})
;; -------~~~=== PRESENTATION ===~~~-----------
;; ACTIONS WHICH CHANGE VIEW
;; -------~~~=== NAVIGATIONAL ===~~~-----------
;; ACTIONS WHICH CHANGE LOCATION
(def mark-bindings
{"C-u C-Spc" "Jump to previous mark"})
(def etags-bindings
{"M-." "Find a tag"
"M-," "Jump to previous tag"
"M-x list-tags" "List all tags defined in source file"})
;; -------~~~=== SYNTACTICAL ===~~~--------
;; ACTIONS WHICH AFFECT SEMANTICS
(def meta-bindings
{"C-x Z" "Repeat last Emacs command"})
(def macro-bindings
{"C-x (" "Start macro"
"C-x )" "End macro"
"C-x e" "Run last defined macro"
"M-x apply-macro-to-region-lines" "Applies macro to defined region"})