From f9bd5d7da32deac986c4e388d10575ffa12bcade Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sat, 4 Feb 2017 17:20:03 +0800 Subject: [PATCH] Disable hl-mode in terminal. --- lisp/init-highlight.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/init-highlight.el b/lisp/init-highlight.el index 2e3f1dafb..0ec928cf2 100644 --- a/lisp/init-highlight.el +++ b/lisp/init-highlight.el @@ -35,6 +35,7 @@ ;; Highlight the current line (use-package hl-line :defer t + :if (display-graphic-p) :init (add-hook 'after-init-hook 'global-hl-line-mode)) ;; Highlight symbol