简体   繁体   中英

How to disable current line "highlighting" in emacs (doom emacs)

I just installed Doom Emacs, and I get this screen:

picture link

I'd like for this "highlighting" feature to go away.

I thought it was hl-line-mode or global-hl-line-mode , but disabling those have no effect.

Using Emacs 27.2 on macOS 10.15.7 on Doom Emacs commit 2731685 (the current head).

Doom sets up a variable to control which modes it shows hl-line

global-hl-line-modes ;; What modes to enable hl-line-mode in.

I like to use hl-line mode at times, but disliked it appearing as a default so:

(setq global-hl-line-modes nil)

It should either be a list of modes, or nil .

;; for example...
(setq global-hl-line-modes '(prog-modes markdown-mode))

But for the love of Pete... don't fix this problem with a color change uurgh!! .

Forcibly change the background color:

(custom-set-faces
  '(default ((t (:background "#000000"))))
  '(hl-line ((t (:background "#000000"))))
 )

add this to the end of ~/.doomd.d/config.el .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM