Add highlight-numbers-mode configuration

This commit is contained in:
Tom Willemse 2015-11-21 20:08:24 +01:00
parent cd286eb7ee
commit d5d58ca19e

View file

@ -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