Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlight line is not working for console mode? #280

Open
rieje opened this issue Jun 9, 2017 · 4 comments
Open

Highlight line is not working for console mode? #280

rieje opened this issue Jun 9, 2017 · 4 comments

Comments

@rieje
Copy link

rieje commented Jun 9, 2017

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.

@Andsbf
Copy link

Andsbf commented Jan 18, 2019

did anyone get a solution for it? 🤔

@Andsbf
Copy link

Andsbf commented Jan 18, 2019

I tried playing with the following values locally:

`(hl-line-face ((,class (:background ,zenburn-bg-05))

`(hl-line ((,class (:background ,zenburn-bg-05)) ; old emacsen

   `(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
Copy link

Andsbf commented Jan 18, 2019

#318

@krotonic
Copy link

krotonic commented Apr 2, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants