bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#51580: hl-line-mode doesn't override global-hl-line-mode in current


From: Gregory Heytings
Subject: bug#51580: hl-line-mode doesn't override global-hl-line-mode in current buffer
Date: Wed, 03 Nov 2021 11:51:49 +0000


And of course this could become a command:

(defun buffer-toggle-global-hl-line-mode ()
  (interactive)
  (make-variable-buffer-local 'global-hl-line-mode)
  (if global-hl-line-mode
      (global-hl-line-unhighlight)
    (global-hl-line-highlight))
  (setq global-hl-line-mode (not global-hl-line-mode)))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]