General clean up
This commit is contained in:
parent
6d2f7d9011
commit
c3197fdd9e
6 changed files with 70 additions and 59 deletions
|
@ -12,18 +12,19 @@
|
|||
(narf:compile-el)))
|
||||
|
||||
(add-hook! emacs-lisp-mode
|
||||
;; (add-hook 'before-save-hook 'delete-trailing-whitespace nil t)
|
||||
(add-hook 'before-save-hook 'delete-trailing-whitespace nil t)
|
||||
(add-hook 'after-save-hook 'narf-elisp-auto-compile nil t))
|
||||
|
||||
;; Highlight extra NARF keywords
|
||||
(let ((new-keywords '("add-hook!"
|
||||
"bind!"
|
||||
"after!"
|
||||
"λ"
|
||||
"in!"
|
||||
)))
|
||||
(let ((keywords '("add-hook!"
|
||||
"bind!"
|
||||
"after!"
|
||||
"λ"
|
||||
"in!"
|
||||
"define-company-backend!"
|
||||
)))
|
||||
(font-lock-add-keywords 'emacs-lisp-mode
|
||||
`((,(concat "(\\s-*" (regexp-opt new-keywords 'paren) "\\_>")
|
||||
`((,(concat "(\\s-*" (regexp-opt keywords 'paren) "\\_>")
|
||||
1 font-lock-keyword-face)) 'append))
|
||||
|
||||
;; Real go-to-definition for elisp
|
||||
|
|
|
@ -64,6 +64,7 @@
|
|||
(define-company-backend! inf-ruby-mode (inf-ruby))))
|
||||
|
||||
(use-package robe
|
||||
:diminish "R"
|
||||
:commands (robe-mode robe-start ruby-load-file)
|
||||
:init
|
||||
(add-hook! after-save 'narf|ruby-load-file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue