Changing highlight line color in emacs

http://stackoverflow.com/questions/17701576/changing-highlight-line-color-in-emacs

That would be an easy fix if you customize your init file (~/.emacs, ~/.emacs.el, or ~/.emacs.d/init.el)

Turn on hl-line:

(global-hl-line-mode 1)

Set any color as the background face of the current line:

(set-face-background 'hl-line "#3e4446")

To keep syntax highlighting in the current line:

(set-face-foreground 'highlight nil)
shareedit

Leave a comment