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 | ca4761af930caef19427863af75b576ce611d2e4 (patch) | |
tree | b28cc9ee10d503124132ed3429c3eb3fa2027c5a /elisp/geiser-repl.el | |
parent | 310f00bbea4b70a25bd0e7d2337a589433f14b31 (diff) | |
download | geiser-guile-ca4761af930caef19427863af75b576ce611d2e4.tar.gz geiser-guile-ca4761af930caef19427863af75b576ce611d2e4.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)) |