mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Add highlight-symbol-mode
This commit is contained in:
@@ -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)
|
||||
|
||||
16
modules/siren-highlight-symbol.el
Normal file
16
modules/siren-highlight-symbol.el
Normal 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)
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user