zenburn-emacs
zenburn-emacs copied to clipboard
Highlight line is not working for console mode?
I have (global-hl-line-mode t)
in my init.el and it's working for GUI emacs. If I run emacs -nw
to launch emacs in the console, I don't see the current line being highlighted at all. The other colors in console look fine though.
did anyone get a solution for it? 🤔
I tried playing with the following values locally:
https://github.com/bbatsov/zenburn-emacs/blob/d71a0f0556c1db785738ab9b0c989df342705a81/zenburn-theme.el#L791
https://github.com/bbatsov/zenburn-emacs/blob/d71a0f0556c1db785738ab9b0c989df342705a81/zenburn-theme.el#L793
`(hl-line-face ((,class (:background ,zenburn-bg+2))
(t :weight bold)))
`(hl-line ((,class (:background ,zenburn-bg+2)) ; old emacsen
(t :weight bold)))
zenburn-bg+2
seems do to the job, just not sure if this would be right color
https://github.com/bbatsov/zenburn-emacs/pull/318
The above fix didn't work for me unfortunately. However the following (in .emacs) did:
(zenburn-with-color-variables
(custom-theme-set-faces
'zenburn
;;;;; hl-line-mode
`(hl-line-face ((t (:background ,zenburn-bg+2 ))))
`(hl-line ((t (:background ,zenburn-bg+2 ))))
))
You can change bg+2
to a higher number for more contrast.