Add highlight-symbol-mode

This commit is contained in:
2015-11-27 19:09:27 +00:00
parent 33e84282c9
commit 8ca3cef40d
3 changed files with 18 additions and 4 deletions

View File

@@ -16,10 +16,6 @@
;; Duplicate line (via siren-helpers.el)
(global-set-key (kbd "C-x C-d") 'duplicate-current-line-or-region)
;; Switch to next/previous buffer
(global-set-key (kbd "C-c C-n") 'switch-to-next-buffer)
(global-set-key (kbd "C-c C-p") 'switch-to-prev-buffer)
;; Window switching (via siren-helpers.el).
(global-set-key (kbd "C-x i") 'other-window-reverse)
(global-set-key (kbd "C-x C-o") 'other-window)

View File

@@ -0,0 +1,16 @@
;;
;; highlight-symbol
;;
(siren-require-packages '(highlight-symbol))
(require 'highlight-symbol)
(setq highlight-symbol-highlight-single-occurrence 'nil)
(setq highlight-symbol-idle-delay 0.5)
(global-set-key (kbd "C-c C-p") 'highlight-symbol-prev)
(global-set-key (kbd "C-c C-n") 'highlight-symbol-next)
(provide 'siren-highlight-symbol)

View File

@@ -6,6 +6,7 @@
(require 'siren-flycheck)
(require 'siren-smartparens)
(require 'siren-highlight-indentation)
(require 'siren-highlight-symbol)
(defun siren-prog-mode-defaults ()
"Default coding hook, useful with any programming language."
@@ -14,6 +15,7 @@
(flyspell-prog-mode)
(fci-mode)
(smartparens-mode +1)
(highlight-symbol-mode)
(setq whitespace-action (quote (auto-cleanup)))
(visual-line-mode +1)
(whitespace-mode +1))