Show ‘t’, ‘nil’, and numbers as constants in Emacs Lisp
This commit is contained in:
parent
092702b95e
commit
3ad8545544
1 changed files with 11 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||
;; 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)
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
|
@ -45,6 +45,16 @@
|
|||
(expand-file-name "snippets" oni-elisp-root)
|
||||
"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
|
||||
(defun oni-elisp-snippets-initialize ()
|
||||
"Initialize the snippets for ‘oni-elisp’."
|
||||
|
|
Loading…
Reference in a new issue