开发者

auto indentation on common lisp emacs + slime + sbcl in windows

开发者 https://www.devze.com 2023-01-05 10:20 出处:网络
I can\'t use auto indentation function on emacs + slime + sbcl when I define my function and so on. My .emacs file configu开发者_如何学JAVAration is this:

I can't use auto indentation function on emacs + slime + sbcl when I define my function and so on.

My .emacs file configu开发者_如何学JAVAration is this:

(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)

Can someone help me?


The slime section in my .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)


I am using emacs 24.1 with slime and discovered that using

(require 'slime)

with

(require 'slime-autoloads)

would not allow slime setup to work, ie no slime-repl or other slime-fancy features would load.

Once I removed

(require 'slime)

it all worked fine.

0

精彩评论

暂无评论...
验证码 换一张
取 消