YZQRCHMJ5ZZUO2SIEBKHGE4KVE7NUZ5SQSTKITFMGX6ODZAZPKSQC
3AXNOSCCMHQTVCYLGT3IBY6EA6Q2MBKKNKY4YTBPJQ2LTVYG5FLQC
RXCY7LD6ZRIOIKZEYKLMCYPMQPXF4DOEEFBDLVR2B22BXLZJFFBQC
A3TVGLVHSVLMEHLHB3TPBSD3QGNVGX3DIK6BEBDTTHWBNW4ALMRAC
7QQ6DIYGYX3RRU4DLDRLFA7KYFYXXPVA4W4JZQMLLNRXHETZTNOAC
2MLDEISPZ2ODUMJHCWN3SNV5IQT7PL3YMNTWROB6RWCPAEWPTIFQC
24ARSDESLRZLW2VZBGODN567CNNUCXZZ6M4LPR7ZTYYMU7YFJN2QC
O3777TK2IVZ6LQATEWWIICGJY3GXO4MOUHZ73ENZFSY3VW4Q2DQAC
PK65HTY26UGVBTMQ7B27HB7I7ZG5YQ7TFXP2R73O2A73Z6DZRRZAC
7L24DODT2V3BKWIPWCXUYRVE7FAGPYO6PFRN3PMT622IA5HAOXTAC
IOVPOFAVXEQIZ7BCFVVAWFW3RYFXPK2GOILDWA6N6QHQHLAJ4XTAC
.DS_Store
(progn ;; workaround until this fixed: https://github.com/emacs-evil/evil/issues/1129
;; or this: https://github.com/emacs-evil/evil/pull/1130
(defun config/fix-evil-window-move (orig-fun &rest args)
"Close Treemacs while moving windows around."
(if (fboundp 'treemacs-get-local-window)
(let* ((treemacs-window (treemacs-get-local-window))
(is-active (and treemacs-window (window-live-p treemacs-window))))
(when is-active (treemacs))
(apply orig-fun args)
(when is-active
(save-selected-window
(treemacs))))
(apply orig-fun args)))
(dolist (func '(evil-window-move-far-left
evil-window-move-far-right
evil-window-move-very-top
evil-window-move-very-bottom))
(advice-add func
:around #'config/fix-evil-window-move)))
)
;; make evil keybindings apply right away when I open a new buffer
(add-hook 'window-configuration-change-hook 'evil-normalize-keymaps))