Skip to content

Instantly share code, notes, and snippets.

@Bankq
Created September 27, 2012 03:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bankq/3792000 to your computer and use it in GitHub Desktop.
Save Bankq/3792000 to your computer and use it in GitHub Desktop.
config of slime
(setq inferior-lisp-program "/usr/bin/sbcl")
(add-to-list 'load-path "~/.emacs.d/site-lisp/slime/")
(require 'slime)
(defun smp/set-up-slime-repl-auto-complete()
"Bind TAB to 'indent-for-tab-command', as in regular Slime buffers"
(local-set-key (kbd "TAB") 'indent-for-tab-command))
(eval-after-load 'slime
'(progn
(slime-setup '(slime-repl))
(setq slime-complete-symbol*-fancy t)
;; (setq slime-complete-symbol-function 'slime-fuzzy-complete-symbol)
;; (add-hook 'slime-repl-mode-hook 'smp/set-up-slime-repl-auto-complete)
(eval-after-load 'auto-complete
'(add-to-list 'ac-modes 'slime-repl-mode))))
;; (add-auto-mode 'lisp-mode "\\.cl$")
;; (add-hook 'lisp-mode-hook() (lambda ()
;; (cond ((not (featurep 'slime))
;; (require 'slime)
;; (normal-mode)))))
;; (setq slime-lisp-implementations
;; '((sbcl ("sbcl" "--core" "sbcl.core-for-slime"))))
(provide 'init-slime)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment