fix(emacs.d): Avoid advising split-window-* functions
Advising these functions apparently breaks things internally.
This commit is contained in:
parent
637cb0bd2a
commit
4a0cf0de98
2 changed files with 12 additions and 5 deletions
|
@ -210,4 +210,7 @@
|
||||||
(exwm-input-set-key (kbd "s-m h") #'randr-layout-hdmi1-extend)
|
(exwm-input-set-key (kbd "s-m h") #'randr-layout-hdmi1-extend)
|
||||||
(exwm-input-set-key (kbd "s-m s") #'randr-layout-single)
|
(exwm-input-set-key (kbd "s-m s") #'randr-layout-single)
|
||||||
|
|
||||||
|
;; Use edwina for window management shortcuts
|
||||||
|
(edwina-mode 1)
|
||||||
|
|
||||||
(provide 'desktop)
|
(provide 'desktop)
|
||||||
|
|
|
@ -61,11 +61,15 @@
|
||||||
(edwina-arrange))
|
(edwina-arrange))
|
||||||
:matcher #'ivy--switch-buffer-matcher
|
:matcher #'ivy--switch-buffer-matcher
|
||||||
:caller 'ivy-switch-buffer))
|
:caller 'ivy-switch-buffer))
|
||||||
:bind (:map edwina-mode-map
|
;; Using an advice for this functionality breaks various internal
|
||||||
("s-w b" . #'edwina-split-to-buffer))
|
;; things in split-window, hence a new interactive function.
|
||||||
:config
|
(defun edwina-split-arrange ()
|
||||||
(advice-add 'split-window-below :after 'edwina-arrange)
|
(interactive)
|
||||||
(edwina-mode 1))
|
(split-window-below)
|
||||||
|
(edwina-arrange))
|
||||||
|
:bind (("C-x 2" . edwina-split-arrange)
|
||||||
|
:map edwina-mode-map
|
||||||
|
("s-w b" . #'edwina-split-to-buffer)))
|
||||||
|
|
||||||
(use-package gruber-darker-theme)
|
(use-package gruber-darker-theme)
|
||||||
(use-package ht)
|
(use-package ht)
|
||||||
|
|
Loading…
Reference in a new issue