Fix for TAB in REPL, and BACKTAB going to previous error
[geiser.git] / doc / cheat.texi
blobd83a54037fc0e4a5ebd1942db49b4f86b01f57e8
1 @node Cheat sheet, No hacker is an island, Fun between the parens, Top
2 @chapter Cheat sheet
4 @menu
5 * Scheme buffers::
6 * REPL::
7 * Documentation browser::
8 @end menu
10 @node Scheme buffers, REPL, Cheat sheet, Cheat sheet
11 @section Scheme buffers
13 @multitable @columnfractions .20 .4 .4
14 @headitem Key @tab Command @tab Description
15 @item C-c C-z
16 @tab geiser-mode-switch-to-repl
17 @tab Switch to REPL
18 @item C-u C-c C-z
19 @tab geiser-mode-switch-to-repl
20 @tab Switch to REPL and current module
21 @item C-c C-s
22 @tab geiser-set-scheme
23 @tab Specify Scheme implementation for buffer
24 @item @tab @tab
25 @item M-.
26 @tab geiser-edit-symbol-at-point
27 @tab Go to definition of identifier at point
28 @item M-,
29 @tab geiser-pop-symbol-stack
30 @tab Go back to where M-. was last invoked
31 @item C-c C-e C-m
32 @tab geiser-edit-module
33 @tab Ask for a module and open its file
34 @item @tab @tab
35 @item C-M-x
36 @tab geiser-eval-definition
37 @tab Eval definition around point
38 @item C-c M-e
39 @tab geiser-eval-definition-and-go
40 @tab Eval definition around point and switch to REPL
41 @item C-x C-e
42 @tab geiser-eval-last-sexp
43 @tab Eval sexp before point
44 @item C-c C-r
45 @tab geiser-eval-region
46 @tab Eval region
47 @item C-c M-r
48 @tab geiser-eval-region-and-go
49 @tab Eval region and switch to REPL
50 @item @tab @tab
51 @item C-c C-m C-x
52 @tab geiser-expand-definition
53 @tab Macro-expand definition around point
54 @item C-c C-m C-e
55 @tab geiser-expand-last-sexp
56 @tab Macro-expand sexp before point
57 @item C-c C-m C-r
58 @tab geiser-expand-region
59 @tab Macro-expand region
60 @item @tab @tab
61 @item C-c C-k
62 @tab geiser-compile-current-buffer
63 @tab Compile and load current file
64 @item M-g n, C-x `
65 @tab next-error
66 @tab Jump to the location of next error
67 @item M-g p
68 @tab previous-error
69 @tab Jump to the location of previous error
70 @item @tab @tab
71 @item C-c C-d C-d
72 @tab geiser-doc-symbol-at-point
73 @tab See documentation for identifier at point
74 @item C-c C-d C-m
75 @tab geiser-doc-module
76 @tab See a list of a module's exported identifiers
77 @item C-c C-d C-a
78 @tab geiser-autodoc-mode
79 @tab Toggle autodoc mode
80 @item @tab @tab
81 @item C-c<
82 @tab geiser-xref-callers
83 @tab Show callers of procedure at point
84 @item C-c>
85 @tab geiser-xref-callees
86 @tab Show callees of procedure at point
87 @item @tab @tab
88 @item M-TAB
89 @tab geiser-completion--complete-symbol
90 @tab Complete identifier at point
91 @item M-`, C-.
92 @tab geiser-completion--complete-module
93 @tab Complete module name at point
94 @end multitable
96 @node REPL, Documentation browser, Scheme buffers, Cheat sheet
97 @section REPL
99 @multitable @columnfractions .20 .4 .4
100 @headitem Key @tab Command @tab Description
101 @item C-c C-z
102 @tab switch-to-geiser
103 @tab Start Scheme REPL, or jump to previous buffer
104 @item C-c C-q
105 @tab geiser-repl-exit
106 @tab Kill Scheme process
107 @item C-c C-k
108 @tab geiser-repl-nuke
109 @tab Nuke REPL: use it if the REPL becomes unresponsive
110 @item M-.
111 @tab geiser-edit-symbol-at-point
112 @tab Edit identifier at point
113 @item TAB
114 @tab geiser-completion--tab
115 @tab Complete identifier at point or indent if none; away from
116 last prompt, go to next error in the buffer.
117 @item S-TAB (backtab)
118 @tab geiser-completion--previous-error
119 @tab Go to previous error in the REPL buffer
120 @item TAB, M-TAB
121 @tab geiser-completion--complete-symbol
122 @tab Complete identifier at point
123 @item M-`, C-.
124 @tab geiser-completion--complete-module
125 @tab Complete module name at point
126 @item M-p, M-n
127 @tab (comint commands)
128 @tab Prompt history, matching current prefix
129 @item C-c M-p, C-c M-n
130 @tab (comint commands)
131 @tab Previous/next prompt inputs
132 @item C-c C-m
133 @tab switch-to-geiser-module
134 @tab Set current module
135 @item C-c C-i
136 @tab geiser-repl-import-module
137 @tab Import module into current namespace
138 @item C-c C-d C-d
139 @tab geiser-doc-symbol-at-point
140 @tab See documentation for symbol at point
141 @item C-c C-d C-m
142 @tab geiser-repl--doc-module
143 @tab See documentation for module
144 @item C-c C-d C-a
145 @tab geiser-autodoc-mode
146 @tab Toggle autodoc mode
147 @end multitable
149 @node Documentation browser,  , REPL, Cheat sheet
150 @section Documentation browser
152 @multitable @columnfractions .20 .4 .4
153 @headitem Key @tab Command @tab Description
154 @item n, f
155 @tab geiser-doc-next @tab Next page
156 @item p, b
157 @tab geiser-doc-previous @tab Previous page
158 @item TAB, S-TAB
159 @tab forward-button, backwards-button
160 @tab Next/previous link
161 @item k
162 @tab geiser-doc-kill-page
163 @tab Kill current page and go to previous or next
164 @item g, r
165 @tab geiser-doc-refresh
166 @tab Refresh page
167 @item c
168 @tab geiser-doc-clean-history
169 @tab Clear browsing history
170 @item ., M-.
171 @tab geiser-doc-edit-symbol-at-point
172 @tab Edit identifier at point
173 @item z
174 @tab geiser-doc-switch-to-repl
175 @tab Switch to REPL
176 @item q
177 @tab View-quit
178 @tab Bury buffer
179 @end multitable
181 @flushright
183 @end flushright