purpose: replace use-package :after by (require ...)

Also move :config to :init
This commit is contained in:
syl20bnr 2016-10-16 22:00:48 -04:00
parent 67f9f4828d
commit be2061c7a0
2 changed files with 3 additions and 6 deletions

View file

@ -4,6 +4,8 @@
;;; Code:
(require 'window-purpose)
(defconst pupo--direction-to-purpose '((left . popl)
(right . popr)
(top . popt)

View file

@ -83,12 +83,7 @@
(use-package spacemacs-purpose-popwin
;; don't load spacemacs-purpose-popwin if popwin is excluded.
;; can't wrap `spacemacs-purpose/init-purpose-popwin' in a top-level `when'
;; spacemacs-purpose-popwin needs to be configured after popwin and
;; 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
:init
(progn
(pupo-mode)
;; override popwin commands with pupo commands