summaryrefslogtreecommitdiff
path: root/elisp/geiser-mode.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2013-04-12 01:05:34 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2013-04-12 01:10:17 +0200
commit1b37dceb787691c5b8cb1dcbc86d622ec9b938b4 (patch)
treef0d93e0ea410b6c723c76f7af20ecf91f66c235e /elisp/geiser-mode.el
parent5b1b700926173c1ffa11fae558bce06b31c0bc30 (diff)
downloadgeiser-1b37dceb787691c5b8cb1dcbc86d622ec9b938b4.tar.gz
geiser-1b37dceb787691c5b8cb1dcbc86d622ec9b938b4.tar.bz2
A bit of documentation for the previous patches
Diffstat (limited to 'elisp/geiser-mode.el')
-rw-r--r--elisp/geiser-mode.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/elisp/geiser-mode.el b/elisp/geiser-mode.el
index 8d66a8a..4d43d1b 100644
--- a/elisp/geiser-mode.el
+++ b/elisp/geiser-mode.el
@@ -74,6 +74,7 @@ active when `geiser-mode' is activated in a buffer."
(defun geiser-eval-region (start end &optional and-go raw nomsg)
"Eval the current region in the Geiser REPL.
+
With prefix, goes to the REPL buffer afterwards (as
`geiser-eval-region-and-go')"
(interactive "rP")
@@ -94,6 +95,7 @@ With prefix, goes to the REPL buffer afterwards (as
(defun geiser-eval-definition (&optional and-go)
"Eval the current definition in the Geiser REPL.
+
With prefix, goes to the REPL buffer afterwards (as
`geiser-eval-definition-and-go')"
(interactive "P")
@@ -110,6 +112,7 @@ With prefix, goes to the REPL buffer afterwards (as
(defun geiser-eval-last-sexp (print-to-buffer-p)
"Eval the previous sexp in the Geiser REPL.
+
With a prefix, print the result of the evaluation to the buffer."
(interactive "P")
(let* ((ret (geiser-eval-region (save-excursion (backward-sexp) (point))
@@ -124,6 +127,7 @@ With a prefix, print the result of the evaluation to the buffer."
(defun geiser-compile-definition (&optional and-go)
"Compile the current definition in the Geiser REPL.
+
With prefix, goes to the REPL buffer afterwards (as
`geiser-eval-definition-and-go')"
(interactive "P")
@@ -150,6 +154,7 @@ With prefix, recursively macro-expand the resulting expression."
(defun geiser-expand-definition (&optional all)
"Macro-expand the current definition.
+
With prefix, recursively macro-expand the resulting expression."
(interactive "P")
(save-excursion
@@ -160,6 +165,7 @@ With prefix, recursively macro-expand the resulting expression."
(defun geiser-expand-last-sexp (&optional all)
"Macro-expand the previous sexp.
+
With prefix, recursively macro-expand the resulting expression."
(interactive "P")
(geiser-expand-region (save-excursion (backward-sexp) (point))
@@ -176,6 +182,7 @@ With prefix, recursively macro-expand the resulting expression."
(defun geiser-mode-switch-to-repl (arg)
"Switches to Geiser REPL.
+
With prefix, try to enter the current buffer's module."
(interactive "P")
(if arg
@@ -201,6 +208,7 @@ With prefix, try to enter the current buffer's module."
(defun geiser-squarify (n)
"Toggle between () and [] for current form.
+
With numeric prefix, perform that many toggles, forward for
positive values and backward for negative."
(interactive "p")
@@ -251,6 +259,7 @@ positive values and backward for negative."
(define-minor-mode geiser-mode
"Toggle Geiser's mode.
+
With no argument, this command toggles the mode.
Non-null prefix argument turns on the mode.
Null prefix argument turns off the mode.