From db5b91c0337c64ed5dbc3c213699ab5784e25126 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Fri, 19 Jun 2015 10:17:33 +0800 Subject: [PATCH] emacs: highlight current line --- emacs.d/config/my-packages.el | 1 + emacs.d/init.el | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/emacs.d/config/my-packages.el b/emacs.d/config/my-packages.el index f227581..5977545 100644 --- a/emacs.d/config/my-packages.el +++ b/emacs.d/config/my-packages.el @@ -53,6 +53,7 @@ jekyll-modes evil-escape workgroups2 + highlight-current-line ) "a list of packages to ensure are installed at launch.") (require 'cl) diff --git a/emacs.d/init.el b/emacs.d/init.el index 3885e08..14ffd19 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -212,7 +212,7 @@ ;; http://stackoverflow.com/questions/11484225/fix-an-auto-complete-mode-and-linum-mode-annoyance -;(ac-linum-workaround) +(ac-linum-workaround) ;; --------------------------------- @@ -225,6 +225,7 @@ '(fringe-mode (quote (4 . 0)) nil (fringe))) (custom-set-faces + '(highlight-current-line-face ((t (:background "gray22")))) '(linum ((t (:background "#000000" :foreground "gray40" :height 0.8)))) '(linum-relative-current-face ((t (:inherit linum :foreground "Yellow" :weight light :height 0.8))))) @@ -232,3 +233,12 @@ ;; enable linum-relative in programming mode ;https://github.com/howardabrams/dot-files/blob/master/emacs.org (add-hook 'prog-mode-hook 'linum-mode) + + + + +;(require 'highli +(require 'highlight-current-line) +(highlight-current-line-on t) + + -- 2.11.0