Created
February 27, 2012 10:22
-
-
Save fukamachi/1922987 to your computer and use it in GitHub Desktop.
Emacs settings for Clack developers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun clack-slime-search-buffer-package () | |
(let ((case-fold-search t) | |
(regexp (concat "^(\\(clack.util:\\)?namespace\\>[ \t']*" | |
"\\([^\n)]+\\)"))) | |
(save-excursion | |
(if (or (re-search-backward regexp nil t) | |
(re-search-forward regexp nil t)) | |
(match-string-no-properties 2) | |
(slime-search-buffer-package))))) | |
(setq slime-find-buffer-package-function 'clack-slime-search-buffer-package) | |
;; cl-annot | |
(font-lock-add-keywords 'lisp-mode '(("\\(?:^\\|[^,]\\)\\(@\\(?:\\sw\\|\\s_\\)+\\)" (1 font-lock-comment-face)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment