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 "yaml-mode" :git "https://github.com/antalk2/yaml-mode")
(depends-on "toml-mode") (depends-on "toml-mode")
;; Lisp -- modules/module-lisp.el
(depends-on "slime")
;; Golang -- modules/module-go.el ;; Golang -- modules/module-go.el
(depends-on "go-mode") (depends-on "go-mode")
(depends-on "go-eldoc") (depends-on "go-eldoc")

View file

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

View file

@ -1,4 +1,4 @@
;;; defuns-elisp.el ;;; defuns-lisp.el
;;;###autoload ;;;###autoload
(defun narf/elisp-find-function-at-pt () (defun narf/elisp-find-function-at-pt ()
@ -12,5 +12,5 @@
(let ((func (function-called-at-point))) (let ((func (function-called-at-point)))
(if func (find-function-other-window func)))) (if func (find-function-other-window func))))
(provide 'defuns-elisp) (provide 'defuns-lisp)
;;; defuns-elisp.el ends here ;;; 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 ;; see lib/elisp-defuns.el
(add-hook! emacs-lisp-mode 'turn-on-eldoc-mode) (add-hook! emacs-lisp-mode 'turn-on-eldoc-mode)
@ -18,7 +18,7 @@
(add-to-list 'imenu-generic-expression (add-to-list 'imenu-generic-expression
'("Package" '("Package"
"\\(^\\s-*(use-package +\\)\\(\\_<.+\\_>\\)" 2))) "\\(^\\s-*(use-package +\\)\\(\\_<.+\\_>\\)" 2))
;; Highlight extra NARF keywords ;; Highlight extra NARF keywords
(let ((keywords '("add-hook!" (let ((keywords '("add-hook!"
@ -32,7 +32,7 @@
))) )))
(font-lock-add-keywords 'emacs-lisp-mode (font-lock-add-keywords 'emacs-lisp-mode
`((,(concat "(\\s-*" (regexp-opt keywords 'paren) "\\_>") `((,(concat "(\\s-*" (regexp-opt keywords 'paren) "\\_>")
1 font-lock-keyword-face)) 'append)) 1 font-lock-keyword-face)) 'append)))
(font-lock-add-keywords (font-lock-add-keywords
'emacs-lisp-mode `(("\\(lambda\\)" (0 (narf/show-as ))))) '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
:m "gD" 'narf/elisp-find-function-at-pt-other-window) :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 ;;; module-elisp.el ends here