summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-11-21 20:08:24 +0100
committerGravatar Tom Willemse2015-11-21 20:08:24 +0100
commitd5d58ca19e66b232e66e1308f3a996edc8019598 (patch)
tree48a51b6b6574d2b2d225eb490c416138a8766526 /emacs
parentcd286eb7ee9b31acd5854bfefb09402dbc18b14e (diff)
downloaddotfiles-d5d58ca19e66b232e66e1308f3a996edc8019598.tar.gz
dotfiles-d5d58ca19e66b232e66e1308f3a996edc8019598.zip
Add highlight-numbers-mode configuration
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org12
1 files changed, 12 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 5a830f8..a256c8f 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -1713,6 +1713,18 @@
(add-hook 'scheme-mode-hook 'lisp-extra-font-lock-mode)
#+End_src
+** Hightlight numbers mode
+
+ I find this regular expression to work better at identifying
+ general numbers as the default one doesn't consider numbers
+ starting with a sign or a decimal point.
+
+ #+BEGIN_SRC emacs-lisp
+ (stante-after highlight-numbers
+ (setq highlight-numbers-generic-regexp
+ "\\_<[-+]?[[:digit:]]+\\(?:\.[[:digit:]]+\\)?.*?\\_>"))
+ #+END_SRC
+
* Final touches
These options and calls need to come last so they don't interfere