zenburn-emacs icon indicating copy to clipboard operation
zenburn-emacs copied to clipboard

Highlight line is not working for console mode?

Open rieje opened this issue 7 years ago • 4 comments

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.

rieje avatar Jun 09 '17 02:06 rieje

did anyone get a solution for it? 🤔

Andsbf avatar Jan 18 '19 05:01 Andsbf

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

Andsbf avatar Jan 18 '19 05:01 Andsbf

https://github.com/bbatsov/zenburn-emacs/pull/318

Andsbf avatar Jan 18 '19 06:01 Andsbf

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.

krotonic avatar Apr 02 '19 17:04 krotonic