diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-10-15 19:31:03 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-10-15 19:31:03 +0200 |
commit | 9e0401cb0d864af44372e60be642f57b4895a1ad (patch) | |
tree | 3185c392040f413598144d299bdd8192afdc8ac9 | |
parent | 85104cd220c6b694a93f486656802b046cba1a79 (diff) | |
download | geiser-chez-9e0401cb0d864af44372e60be642f57b4895a1ad.tar.gz geiser-chez-9e0401cb0d864af44372e60be642f57b4895a1ad.tar.bz2 |
Documentation for smart-tab mode
-rw-r--r-- | README (renamed from README.org) | 46 | ||||
-rw-r--r-- | doc/fun.texi | 8 |
2 files changed, 9 insertions, 45 deletions
@@ -1,3 +1,4 @@ + -*- org -*- * Overview Geiser is a generic Emacs/Scheme interaction mode, featuring an @@ -118,55 +119,30 @@ |---------------------+-------------------------------------------------| | C-c C-z | Switch to REPL | - |---------------------+-------------------------------------------------| | C-u C-c C-z | Switch to REPL and current module | - |---------------------+-------------------------------------------------| | C-c C-s | Specify Scheme implementation for buffer | - |---------------------+-------------------------------------------------| | M-. | Go to definition of identifier at point | - |---------------------+-------------------------------------------------| | M-, | Go back to where M-. was last invoked | - |---------------------+-------------------------------------------------| | C-c C-e m | Ask for a module and open its file | - |---------------------+-------------------------------------------------| | C-M-x | Eval definition around point | - |---------------------+-------------------------------------------------| | C-c M-e | Eval definition around point and switch to REPL | - |---------------------+-------------------------------------------------| | C-x C-e | Eval sexp before point | - |---------------------+-------------------------------------------------| | C-c C-r | Eval region | - |---------------------+-------------------------------------------------| | C-c M-r | Eval region and switch to REPL | - |---------------------+-------------------------------------------------| | C-c C-m x | Macro-expand definition around point | - |---------------------+-------------------------------------------------| | C-c C-m e | Macro-expand sexp before point | - |---------------------+-------------------------------------------------| | C-c C-m r | Marcro-expand region | - |---------------------+-------------------------------------------------| | C-u C-c C-m [x,e,r] | (With prefix, macro expansions are recursive) | - |---------------------+-------------------------------------------------| | C-c C-k | Compile and load current file | - |---------------------+-------------------------------------------------| | C-c C-l | Load current file | - |---------------------+-------------------------------------------------| | C-c C-d d | See documentation for identifier at point | - |---------------------+-------------------------------------------------| | C-c C-d m | See a list of a module's exported identifiers | - |---------------------+-------------------------------------------------| | C-c C-d a | Toggle autodoc mode | - |---------------------+-------------------------------------------------| | C-c< | Show callers of procedure at point | - |---------------------+-------------------------------------------------| | C-c> | Show callees of procedure at point | - |---------------------+-------------------------------------------------| | C-c C-x f | See a generic's methods signatures | - |---------------------+-------------------------------------------------| | M-TAB | Complete identifier at point | - |---------------------+-------------------------------------------------| | M-`, C-. | Complete module name at point | - |---------------------+-------------------------------------------------| | TAB | Complete identifier at point or indent | | | (If `geiser-mode-smart-tab-p' is t) | |---------------------+-------------------------------------------------| @@ -175,29 +151,17 @@ |-------------+----------------------------------------------------| | C-c C-z | Start Scheme REPL, or jump to previous buffer | - |-------------+----------------------------------------------------| | C-c C-q | Kill Scheme process | - |-------------+----------------------------------------------------| | M-. | Edit identifier at point | - |-------------+----------------------------------------------------| | TAB, M-TAB | Complete identifier at point | - |-------------+----------------------------------------------------| | M-`, C-. | Complete module name at point | - |-------------+----------------------------------------------------| | M-p, M-n | Prompt history, matching current prefix | - |-------------+----------------------------------------------------| | C-c C-k | Nuke REPL: use it if the REPL becomes unresponsive | - |-------------+----------------------------------------------------| | C-c C-m | Set current module | - |-------------+----------------------------------------------------| | C-c C-i | Import module into current namespace | - |-------------+----------------------------------------------------| | C-c C-l | Load scheme file | - |-------------+----------------------------------------------------| | C-c C-d C-d | See documentation for symbol at point | - |-------------+----------------------------------------------------| | C-c C-d C-m | See documentation for module | - |-------------+----------------------------------------------------| | C-c C-d C-a | Toggle autodoc mode | |-------------+----------------------------------------------------| @@ -205,21 +169,13 @@ |------------+----------------------------------------------| | n, f | Next page | - |------------+----------------------------------------------| | p, b | Previous page | - |------------+----------------------------------------------| | TAB, S-TAB | Next/previous link | - |------------+----------------------------------------------| | k | Kill current page and go to previous or next | - |------------+----------------------------------------------| | g, r | Refresh page | - |------------+----------------------------------------------| | c | Clear browsing history | - |------------+----------------------------------------------| | ., M-. | Edit identifier at point | - |------------+----------------------------------------------| | z | Switch to REPL | - |------------+----------------------------------------------| | q | Bury buffer | |------------+----------------------------------------------| diff --git a/doc/fun.texi b/doc/fun.texi index 746b608..9895443 100644 --- a/doc/fun.texi +++ b/doc/fun.texi @@ -463,6 +463,14 @@ you're at the end of the following partial expression: and press @kbd{M-@key{TAB}}, one of the possible completions will be @code{definite}. +@cindex smart tabs +If you find the @kbd{M} modifier annoying, you always have the option to +activate @code{geiser-smart-tab-mode}, which will make the @key{TAB} key +double duty as the regular Emacs indentation command (when the cursor is +not near a symbol) and Geiser's completion function. If you want this +smarty pants mode always on in Scheme buffers, customize +@code{geiser-mode-smart-tab-p} to @code{t}. + @cindex completion for module names Geiser also knows how to complete module names, but it's not yet smart enough to infer by context that that's what you want. Instead, you must |