Enable ahs globally and add key bindings for selecting ahs range

This commit is contained in:
syl20bnr 2013-08-19 00:04:52 -04:00
parent df0621b8b8
commit 7fd1c2c7fd
2 changed files with 6 additions and 0 deletions

View file

@ -1,4 +1,7 @@
(require 'auto-highlight-symbol)
(global-auto-highlight-symbol-mode t)
(custom-set-variables
'(ahs-case-fold-search nil)
'(ahs-default-range (quote ahs-range-whole-buffer))

View file

@ -86,7 +86,10 @@
;; git ------------------------------------------------------------------------
(evil-leader/set-key "gs" 'magit-status)
;; auto-highlight-symbol ------------------------------------------------------
(evil-leader/set-key "hb" 'ahs-chrange-whole-buffer)
(evil-leader/set-key "hd" 'ahs-chrange-display)
(evil-leader/set-key "he" 'ahs-edit-mode)
(evil-leader/set-key "hf" 'ahs-chrange-beginning-of-defun)
(evil-leader/set-key "hh" 'auto-highlight-symbol-mode)
(evil-leader/set-key "hn" 'ahs-forward)
(evil-leader/set-key "hp" 'ahs-backward)