diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-11-25 18:26:07 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2010-11-25 18:26:07 +0100 |
commit | 6131191bca3acfa698e7562d84933fe02422dbd7 (patch) | |
tree | 74081e360dc4e1ec1501fe337e22493b0edbadf1 /elisp/geiser-repl.el | |
parent | 773a5037fa401907ae548c53a165bcb4ba7a4c1d (diff) | |
download | geiser-6131191bca3acfa698e7562d84933fe02422dbd7.tar.gz geiser-6131191bca3acfa698e7562d84933fe02422dbd7.tar.bz2 |
Completion: respecting tab-always-indent
... and actually using it to implement geiser-smart-tab-mode. Always
nice to un-reinvent-the-wheel.
Diffstat (limited to 'elisp/geiser-repl.el')
-rw-r--r-- | elisp/geiser-repl.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/elisp/geiser-repl.el b/elisp/geiser-repl.el index 7308a6e..7c89df2 100644 --- a/elisp/geiser-repl.el +++ b/elisp/geiser-repl.el @@ -480,7 +480,7 @@ there's no symbol at point). Otherwise, go to next error in the REPL buffer." (interactive "p") (if (> (point) (geiser-repl--last-prompt-end)) - (geiser-completion--maybe-complete) + (completion-at-point) (compilation-next-error n))) (defun geiser-repl--previous-error (n) @@ -501,6 +501,9 @@ buffer." (set (make-local-variable 'comint-input-ignoredups) geiser-repl-history-no-dups-p) (setq geiser-eval--get-module-function 'geiser-repl--module-function) + (geiser-completion--setup t) + (setq geiser-smart-tab-mode-string "") + (geiser-smart-tab-mode t) (geiser-company--setup geiser-repl-company-p) ;; enabling compilation-shell-minor-mode without the annoying highlighter (compilation-setup t)) |