mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
chore(use-package): use :preface in favor of :init when defining things
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user