New answers tagged


You can use window-selection-change-functions. By adding a function locally the function is called each time when the window showing that buffer has been selected/deselected (see the docstring for more info). This can be used to toggle hl-line-face face for the deft buffer: (defvar-local deft-hl-line-toggle-cookie+ nil) (defun deft-toggle-hl-line-face+ (w) ...

Top 50 recent answers are included