Skip to content

Commit

Permalink
tweak(highlight-numbers): enable for conf-mode, tweak regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed May 25, 2023
1 parent c5ef698 commit 849dba3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/me-editor.el
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@

(use-package highlight-numbers
:straight t
:hook (prog-mode . highlight-numbers-mode))
:hook ((prog-mode conf-mode) . highlight-numbers-mode)
:config
;; Original "\\_<[[:digit:]].*?\\_>"
(setq highlight-numbers-generic-regexp "\\_<[[:digit:]]+\\(?:\\.[0-9]*\\)?\\_>"))

(use-package smartparens
:straight t
Expand Down

0 comments on commit 849dba3

Please sign in to comment.