aboutsummaryrefslogtreecommitdiffstats
path: root/oni-elisp/oni-elisp.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-06-16 22:20:16 -0700
committerGravatar Tom Willemse2020-06-16 22:20:16 -0700
commit3ad85455443e5de4fdea174c688c0f27ff4395cc (patch)
tree0fa4ce2e27042c93ad40fee8978c62d934eb9022 /oni-elisp/oni-elisp.el
parent092702b95eafb95fd4d8d16bf3879bdb809f9ca9 (diff)
downloademacs-config-3ad85455443e5de4fdea174c688c0f27ff4395cc.tar.gz
emacs-config-3ad85455443e5de4fdea174c688c0f27ff4395cc.zip
Show ‘t’, ‘nil’, and numbers as constants in Emacs Lisp
Diffstat (limited to 'oni-elisp/oni-elisp.el')
-rw-r--r--oni-elisp/oni-elisp.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/oni-elisp/oni-elisp.el b/oni-elisp/oni-elisp.el
index 18c6426..f5211b4 100644
--- a/oni-elisp/oni-elisp.el
+++ b/oni-elisp/oni-elisp.el
@@ -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’."