Emacs 27 introduced a bunch of `window-*-change-functions` hooks, including `window-selection-change-functions` and `window-buffer-change-functions`, which handles 98% of the use case for Doom's `doom-switch-{buffer,window,frame}-hook` hooks, so I've rewritten them to use them under the hood, which amounts to simpler code and fewer hacks.
15 lines
411 B
EmacsLisp
15 lines
411 B
EmacsLisp
;;; ui/hydra/config.el -*- lexical-binding: t; -*-
|
|
|
|
(use-package! hydra-examples
|
|
:commands (hydra-move-splitter-up
|
|
hydra-move-splitter-down
|
|
hydra-move-splitter-right
|
|
hydra-move-splitter-left))
|
|
|
|
;;;###package hydra
|
|
(setq lv-use-separator t)
|
|
|
|
(defadvice! +hydra--inhibit-window-switch-hooks-a (fn)
|
|
:around #'lv-window
|
|
(let (doom-switch-window-hook)
|
|
(funcall fn)))
|