[Fix #661] Add highlight-numbers

However, disable it in asm-mode since some hex numbers in asm-mode do
not have 0x before them, so the highlighting is random, i.e. a decimal
number like 01 can be highlighted but not ff or e9.
This commit is contained in:
Tu Do 2015-03-20 23:07:04 +07:00 committed by syl20bnr
parent f5fa170147
commit 5a2e130a09

View file

@ -79,6 +79,7 @@
helm-swoop
helm-themes
highlight
highlight-numbers
hippie-exp
hl-anything
hungry-delete
@ -1566,6 +1567,14 @@ which require an initialization must be listed explicitly in the list.")
(evil-leader/set-key
"Th" 'helm-themes)))
(defun spacemacs/init-highlight-numbers ()
(use-package highlight-numbers
:defer t
:init
(progn
(add-hook 'prog-mode-hook 'highlight-numbers-mode)
(add-hook 'asm-mode-hook (lambda () (highlight-numbers-mode -1))))))
(defun spacemacs/init-hippie-exp ()
(global-set-key (kbd "M-/") 'hippie-expand) ;; replace dabbrev-expand
(setq hippie-expand-try-functions-list