purpose: replace use-package :after by (require ...)
Also move :config to :init
This commit is contained in:
parent
67f9f4828d
commit
be2061c7a0
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
|
(require 'window-purpose)
|
||||||
|
|
||||||
(defconst pupo--direction-to-purpose '((left . popl)
|
(defconst pupo--direction-to-purpose '((left . popl)
|
||||||
(right . popr)
|
(right . popr)
|
||||||
(top . popt)
|
(top . popt)
|
||||||
|
|
|
@ -83,12 +83,7 @@
|
||||||
(use-package spacemacs-purpose-popwin
|
(use-package spacemacs-purpose-popwin
|
||||||
;; don't load spacemacs-purpose-popwin if popwin is excluded.
|
;; don't load spacemacs-purpose-popwin if popwin is excluded.
|
||||||
;; can't wrap `spacemacs-purpose/init-purpose-popwin' in a top-level `when'
|
;; can't wrap `spacemacs-purpose/init-purpose-popwin' in a top-level `when'
|
||||||
;; spacemacs-purpose-popwin needs to be configured after popwin and
|
:init
|
||||||
;; window-purpose. popwin is guaranteed to run before
|
|
||||||
;; spacemacs-purpose-popwin due to alphabetic order, but for window-purpose
|
|
||||||
;; we need to use :after
|
|
||||||
:after window-purpose
|
|
||||||
:config
|
|
||||||
(progn
|
(progn
|
||||||
(pupo-mode)
|
(pupo-mode)
|
||||||
;; override popwin commands with pupo commands
|
;; override popwin commands with pupo commands
|
||||||
|
|
Loading…
Reference in a new issue