about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-16T03·55+0000
committerVincent Ambo <tazjin@google.com>2019-12-16T03·56+0000
commit20ef6710e0129579bbcf8cb1becda7b18cf6c278 (patch)
treea312379c1f7f2a91a061d3926eed5fa9955c92eb /tools
parent4897669f501a9718d7e02287aee781aecb156c0f (diff)
fix(emacs.d): Only highlight current line in prog-modes r/161
This is extremely annoying in vterms, so now it's gone!
Diffstat (limited to 'tools')
-rw-r--r--tools/emacs/config/look-and-feel.el3
-rw-r--r--tools/emacs/config/modes.el1
2 files changed, 1 insertions, 3 deletions
diff --git a/tools/emacs/config/look-and-feel.el b/tools/emacs/config/look-and-feel.el
index 88cab18ed2..98716dde64 100644
--- a/tools/emacs/config/look-and-feel.el
+++ b/tools/emacs/config/look-and-feel.el
@@ -90,9 +90,6 @@
 ;; Show column numbers in all buffers
 (column-number-mode t)
 
-;; Highlight currently active line
-(global-hl-line-mode t)
-
 (defalias 'yes-or-no-p 'y-or-n-p)
 (defalias 'auto-tail-revert-mode 'tail-mode)
 
diff --git a/tools/emacs/config/modes.el b/tools/emacs/config/modes.el
index ceef84b962..8d47f2f9a5 100644
--- a/tools/emacs/config/modes.el
+++ b/tools/emacs/config/modes.el
@@ -1,6 +1,7 @@
 ;; Initializes modes I use.
 
 (add-hook 'prog-mode-hook 'esk-add-watchwords)
+(add-hook 'prog-mode-hook 'hl-line-mode)
 
 ;; Use auto-complete as completion at point
 (defun set-auto-complete-as-completion-at-point-function ()