1
0
Fork 0

Show ‘t’, ‘nil’, and numbers as constants in Emacs Lisp

This commit is contained in:
Tom Willemse 2020-06-16 22:20:16 -07:00
parent 092702b95e
commit 3ad8545544

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2020.0616.215511 ;; Version: 2020.0616.221949
;; Package-Requires: (oni-company oni-flycheck oni-paredit oni-fci oni-yasnippet oni-hydra rainbow-delimiters nameless erefactor flycheck-relint handle elisp-format) ;; Package-Requires: (oni-company oni-flycheck oni-paredit oni-fci oni-yasnippet oni-hydra rainbow-delimiters nameless erefactor flycheck-relint handle elisp-format)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -45,6 +45,16 @@
(expand-file-name "snippets" oni-elisp-root) (expand-file-name "snippets" oni-elisp-root)
"The directory where oni-elisp stores its snippets.") "The directory where oni-elisp stores its snippets.")
(font-lock-add-keywords
'emacs-lisp-mode
`((,(rx symbol-start
(group (or "t"
"nil"
(and digit
(minimal-match (zero-or-more (any digit ?.))))))
symbol-end)
1 font-lock-constant-face)))
;;;###autoload ;;;###autoload
(defun oni-elisp-snippets-initialize () (defun oni-elisp-snippets-initialize ()
"Initialize the snippets for oni-elisp." "Initialize the snippets for oni-elisp."