summaryrefslogtreecommitdiff
path: root/elisp/geiser-repl.el
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-08-25 01:58:55 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-08-25 01:58:55 +0200
commit91841a63fb0cf3c8a0a6ed1e9086b72097cd44e4 (patch)
treecc22f354204c9e912f1dc7e39f40f933ce51ab1c /elisp/geiser-repl.el
parente0dd77a67b8e7c7d2d56aa353967249cc1e19f1e (diff)
downloadgeiser-91841a63fb0cf3c8a0a6ed1e9086b72097cd44e4.tar.gz
geiser-91841a63fb0cf3c8a0a6ed1e9086b72097cd44e4.tar.bz2
Now this is cool: support for company mode.
Diffstat (limited to 'elisp/geiser-repl.el')
-rw-r--r--elisp/geiser-repl.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el
index bed653f..4ea1bb7 100644
--- a/elisp/geiser-repl.el
+++ b/elisp/geiser-repl.el
@@ -24,6 +24,7 @@
;;; Code:
+(require 'geiser-company)
(require 'geiser-autodoc)
(require 'geiser-edit)
(require 'geiser-impl)
@@ -70,6 +71,11 @@ implementation name gets appended to it."
:type 'boolean
:group 'geiser-repl)
+(defcustom geiser-repl-company-p t
+ "Whether to use company-mode for completion, if available."
+ :group 'geiser-mode
+ :type 'boolean)
+
(defcustom geiser-repl-read-only-prompt-p t
"Whether the REPL's prompt should be read-only."
:type 'boolean
@@ -293,6 +299,7 @@ If no REPL is running, execute `run-geiser' to start a fresh one."
(set-syntax-table scheme-mode-syntax-table)
(setq geiser-eval--get-module-function 'geiser-repl--module-function)
(when geiser-repl-autodoc-p (geiser-autodoc-mode 1))
+ (geiser-company--setup geiser-repl-company-p)
(compilation-shell-minor-mode 1))
(define-key geiser-repl-mode-map "\C-d" 'delete-char)