module-elisp.el => module-lisp.el

This commit is contained in:
Henrik Lissner 2015-11-24 03:44:17 -05:00
parent 9034993ccb
commit 0897e5e34b
4 changed files with 27 additions and 20 deletions

3
Cask
View file

@ -122,6 +122,9 @@
(depends-on "yaml-mode" :git "https://github.com/antalk2/yaml-mode")
(depends-on "toml-mode")
;; Lisp -- modules/module-lisp.el
(depends-on "slime")
;; Golang -- modules/module-go.el
(depends-on "go-mode")
(depends-on "go-eldoc")

View file

@ -78,7 +78,7 @@
module-csharp ; unity, .NET, and mono shenanigans
module-collab ; wonewy, I'm so wonewy~
module-data ; dbs 'n data formats
module-elisp ; drowning in parentheses
module-lisp ; drowning in parentheses
module-go ; a hipster dialect
module-java ; the poster child for carpal tunnel syndome
module-js ; all(hope(abandon(ye(who(enter(here))))))

View file

@ -1,4 +1,4 @@
;;; defuns-elisp.el
;;; defuns-lisp.el
;;;###autoload
(defun narf/elisp-find-function-at-pt ()
@ -12,5 +12,5 @@
(let ((func (function-called-at-point)))
(if func (find-function-other-window func))))
(provide 'defuns-elisp)
;;; defuns-elisp.el ends here
(provide 'defuns-lisp)
;;; defuns-lisp.el ends here

View file

@ -1,4 +1,4 @@
;;; module-elisp --- all things emacs lisp
;;; module-lisp --- all things lisp
;; see lib/elisp-defuns.el
(add-hook! emacs-lisp-mode 'turn-on-eldoc-mode)
@ -18,10 +18,10 @@
(add-to-list 'imenu-generic-expression
'("Package"
"\\(^\\s-*(use-package +\\)\\(\\_<.+\\_>\\)" 2)))
"\\(^\\s-*(use-package +\\)\\(\\_<.+\\_>\\)" 2))
;; Highlight extra NARF keywords
(let ((keywords '("add-hook!"
;; Highlight extra NARF keywords
(let ((keywords '("add-hook!"
"bind!"
"after!"
"λ"
@ -32,7 +32,7 @@
)))
(font-lock-add-keywords 'emacs-lisp-mode
`((,(concat "(\\s-*" (regexp-opt keywords 'paren) "\\_>")
1 font-lock-keyword-face)) 'append))
1 font-lock-keyword-face)) 'append)))
(font-lock-add-keywords
'emacs-lisp-mode `(("\\(lambda\\)" (0 (narf/show-as )))))
@ -42,5 +42,9 @@
:m "gd" 'narf/elisp-find-function-at-pt
:m "gD" 'narf/elisp-find-function-at-pt-other-window)
(provide 'module-elisp)
(use-package slime :defer t
:config
(setq inferior-lisp-program "clisp"))
(provide 'module-lisp)
;;; module-elisp.el ends here