定义函数等时,无法在emacs + slime + sbcl上使用自动缩进功能。
我的.emacs
文件配置是这样的:
(setq inferior-lisp-program
"D:/emacs/sbcl_1.0.37/sbcl.exe"
lisp-indent-function 'common-lisp-indent-function
slime-complete-symbol-function 'slime-fuzzy-complete-symbol
slime-startup-animation nil
slime-enable-evaluate-in-emacs t
slime-log-events t
slime-outline-mode-in-events-buffer nil
slime-repl-return-behaviour :send-only-if-after-complete
slime-autodoc-use-multiline-p t
slime-highlight-compiler-notes t)
(add-to-list 'load-path
"d:/emacs/site-lisp/slime") ; your SLIME directory
(require 'slime)
(slime-setup)
有人能帮我吗?
最佳答案
我的.emacs
中的粘液部分:
;;; SLIME
(setq inferior-lisp-program "/usr/bin/sbcl")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/slime/")
(require 'slime)
(require 'slime-autoloads)
(slime-setup '(slime-fancy))
(global-set-key "\C-cs" 'slime-selector)
关于windows - Windows中常见Lisp emacs +粘液+ sbcl的自动缩进,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3132000/