문제

I am using sbcl with GNU Emacs 24.3.1 and the 2012-04-14 release of SLIME, on Arch Linux to write some Common Lisp code. When writing an expression, if I type, for example

(if 

the minibuffer will display

(if TEST THEN &OPTIONAL ELSE)

Is there a mode or SLIME setting that can make the argument that I'm currently editing be highlighted in the minibuffer? For example, if I type

(if (> x y) 

it would be great if

(if TEST *THEN* &OPTIONAL ELSE)

or something similar was displayed in the minibuffer.

도움이 되었습니까?

해결책

The strange thing is that you have documentation in minibuffer with this configuration. Maybe your distribution also loads it from a different location.

Please try this config:

(setq inferior-lisp-program "/usr/bin/sbcl")
(add-to-list 'load-path "~/.emacs.d/slime-2012-04-14/")
(require 'slime)
(require 'slime-autoloads)
(slime-setup '(slime-autodoc))

It tells Emacs to load and use slime-autodoc module that displays documentation and in minibuffer and highlights it as you'd like it to be.

Maybe you'd also like to update to a more recent SLIME version (the current one in ELPA is 20130402).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top