Add highlight-numbers-mode configuration
This commit is contained in:
parent
cd286eb7ee
commit
d5d58ca19e
1 changed files with 12 additions and 0 deletions
|
@ -1713,6 +1713,18 @@
|
||||||
(add-hook 'scheme-mode-hook 'lisp-extra-font-lock-mode)
|
(add-hook 'scheme-mode-hook 'lisp-extra-font-lock-mode)
|
||||||
#+End_src
|
#+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
|
* Final touches
|
||||||
|
|
||||||
These options and calls need to come last so they don't interfere
|
These options and calls need to come last so they don't interfere
|
||||||
|
|
Loading…
Reference in a new issue