SLY: Do not append space after filename completion.

master
Pierre Neidhardt 2021-01-22 19:44:58 +01:00
parent 54f263ed15
commit 9baebf4073
1 changed files with 7 additions and 0 deletions

View File

@ -165,6 +165,13 @@ Good substitute for `sly-mrepl-indent-and-complete-symbol'."
(setq sly-command-switch-to-existing-lisp 'always)
(add-hook 'sly-mrepl-hook #'ambrevar/init-lispy)
(add-hook 'sly-mrepl-hook #'rainbow-delimiters-mode)
;; REVIEW: https://github.com/joaotavora/sly/issues/404
(defun ambrevar/do-not-append-space-after-file-completion ()
"This setting is buffer local."
(set (make-local-variable 'comint-completion-addsuffix) '("/" . "")))
(add-hook 'sly-mrepl-hook #'ambrevar/do-not-append-space-after-file-completion)
;; REVIEW: With Emacs 27 we can:
;; (customize-set-variable 'helm-completion-style 'emacs)
;; (add-to-list 'completion-styles 'backend)