How can I get syntax highlighting for general lisp in SLIME REPL?

I want to learn Common Lisp and install emacs (24.3) and slime through the emacs package manager.

In slime, REPL syntax highlighting does not work. When I run Lisp-Mode (while in slime REPL), on the other hand, expression values ​​no longer print (when I type, say "Hello World" and press enter, I get a new line instead of the expression value.

(If I open Lisp file syntax highlighting files)

+7
emacs common-lisp slime
source share
1 answer

this works for me ( http://compgroups.net/comp.emacs/tweaking-slime/95455 ):

(defvar slime-repl-font-lock-keywords lisp-font-lock-keywords-2) (defun slime-repl-font-lock-setup () (setq font-lock-defaults '(slime-repl-font-lock-keywords ;; From lisp-mode.el nil nil (("+-*/.<>=!?$%_&~^:@" . "w")) nil (font-lock-syntactic-face-function . lisp-font-lock-syntactic-face-function)))) (add-hook 'slime-repl-mode-hook 'slime-repl-font-lock-setup) (defadvice slime-repl-insert-prompt (after font-lock-face activate) (let ((inhibit-read-only t)) (add-text-properties slime-repl-prompt-start-mark (point) '(font-lock-face slime-repl-prompt-face rear-nonsticky (slime-repl-prompt read-only font-lock-face intangible)))))) 
+3
source share

All Articles