linux - Changing highlight line color in emacs -


i installed emacs 24 , installed prelude , wanted change theme zenburn tango-dark. color line highlighted yellow , don't that. want gray color in zenburn. tango-dark theme hl-line enabled(yellow)

zenburn theme hl-line enabled(dark gray)

what should do? prefer not turn off hl-line when tried saw space between parentheses () highlighted same yellow color. (in zenburn theme didn't happen). know not part of tango theme because when run vanilla emacs(sudo emacs) tango theme no such highlighting happens. tango-dark theme hl-mode disabled vanilla emacs tango-dark theme

that easy fix if customize init file (~/.emacs, ~/.emacs.el, or ~/.emacs.d/init.el)

turn on hl-line:

(global-hl-line-mode 1) 

set color background face of current line:

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

to keep syntax highlighting in current line:

(set-face-foreground 'highlight nil) 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -