chore(use-package): use :preface in favor of :init when defining things

This commit is contained in:
2022-04-22 23:25:56 +01:00
parent be595062e6
commit 2b39d5b0d7
77 changed files with 134 additions and 124 deletions

View File

@@ -28,7 +28,7 @@
:hook
(escreen-goto-screen . siren-escreen-get-active-screen)
:init
:preface
(defun siren-escreen-get-active-screen ()
"what the name says"
(interactive)

View File

@@ -63,13 +63,7 @@
(persp-keymap-prefix "")
(persp-nil-name "nil")
:init
;; Do not auto save/load in terminal. My main instance of Emacs runs in GUI,
;; terminal based instances are for smaller random things.
(when (not window-system)
(setq persp-auto-resume-time -1
persp-auto-save-opt 0))
:preface
(defun siren-persp-mode-filter-magit-buffers (buf)
(string-prefix-p "magit" (buffer-name buf)))
@@ -176,6 +170,13 @@ ARG counts from 1."
(let ((name (nth arg (persp-names-current-frame-fast-ordered))))
(if name (persp-switch name))))
:init
;; Do not auto save/load in terminal. My main instance of Emacs runs in GUI,
;; terminal based instances are for smaller random things.
(when (not window-system)
(setq persp-auto-resume-time -1
persp-auto-save-opt 0))
:config
(persp-mode)