From 3ad85455443e5de4fdea174c688c0f27ff4395cc Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 16 Jun 2020 22:20:16 -0700 Subject: [PATCH] =?UTF-8?q?Show=20=E2=80=98t=E2=80=99,=20=E2=80=98nil?= =?UTF-8?q?=E2=80=99,=20and=20numbers=20as=20constants=20in=20Emacs=20Lisp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oni-elisp/oni-elisp.el | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 ;; 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’."