Spacemacs的scheme layer和racket layer分别在scheme-mode和racket-mode下无法自动补全代码,该如何处理
dotspacemacs-configuration-layers
'(;; ----------------------------------------------------------------
;; Example of useful layers you may want to use right away.
;; Uncomment some layer names and press <SPC f e R> (Vim style) or
;; <M-m f e R> (Emacs style) to install them.
;; ----------------------------------------------------------------
helm
auto-completion ;; <==
(auto-completion :variables
auto-completion-enable-sort-by-usage t
auto-completion-enable-snippets-in-popup t)
自动补全只在REPL下有效,scheme layer和racket layer分别在scheme-mode和racket-mode下无法自动补全代码
问题已解决,在spacemacs:Issue找到解决方法
scheme layer company not work #10561
(defun scheme/post-init-company ()
;; Geiser provides completion as long as company mode is loaded.
(spacemacs|add-company-backends :backends geiser-company-backend :modes scheme-mode))
进入scheme-mode同时开启REPL,在scheme-mode中company自动补全就可以用了。
spacemacs默认的scheme layer进入scheme-mode同时开启REPL,需要补全要使用TAB key,在mini buffer会有提示,但这效率也太低了些。