Skip to content

Instantly share code, notes, and snippets.

@hchbaw
Created December 22, 2009 18:30
Show Gist options
  • Save hchbaw/261923 to your computer and use it in GitHub Desktop.
Save hchbaw/261923 to your computer and use it in GitHub Desktop.
;; Clojure 用に slime-cursor-marker を設定しちゃいます、同時に、
;; CL 用 (sbcl) に swank::+cursor-marker+ を上書きしちゃいます。
(setq slime-lisp-implementations
`((sbcl ("sbcl") :init-function my-swank-cl-init)
(clojure ,(swank-clojure-cmd) :init swank-clojure-init)))
(eval-after-load 'slime-autodoc
'(progn
(setq slime-cursor-marker :swank/+cursor+)))
(eval-after-load 'slime
'(progn
(defun my-swank-cl-init ()
;; たまに上書きされちゃう >_<
(slime-eval-async
`(swank:interactive-eval
,(format "(defparameter +cursor-marker+ %s)" slime-cursor-marker))
'identity
"SWANK"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment