ui/workspaces: correct inline defun hooks

And add-to-list -> add-hook, because its a tiny bit faster (and fewer
characters).
This commit is contained in:
Henrik Lissner 2019-07-27 17:08:03 +02:00
parent ead0b1ce15
commit 3313212f90
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -39,7 +39,7 @@ stored in `persp-save-dir'.")
(use-package! persp-mode
:commands persp-switch-to-buffer
:init
(add-hook 'doom-init-modules-hook
(add-hook! 'doom-init-modules-hook
(defun +workspaces-init-h ()
(unless noninteractive
;; Remove default buffer predicate so persp-mode can put in its own
@ -115,8 +115,8 @@ stored in `persp-save-dir'.")
(when persp-mode
(persp-add-buffer (current-buffer) (get-current-persp)))))
(add-to-list 'persp-add-buffer-on-after-change-major-mode-filter-functions
#'doom-unreal-buffer-p)
(add-hook 'persp-add-buffer-on-after-change-major-mode-filter-functions
#'doom-unreal-buffer-p)
(defadvice! +workspaces--evil-alternate-buffer-a (&optional window)
"Make `evil-alternate-buffer' ignore buffers outside the current workspace."