Use :if keyword for pbcopy init

This commit is contained in:
syl20bnr 2015-02-07 23:27:50 -05:00
parent b08f993b34
commit 7caaeb1c1d

View file

@ -7,6 +7,5 @@ which require an initialization must be listed explicitly in the list.")
(defun osx/init-pbcopy ()
(use-package pbcopy
:init
(unless (display-graphic-p)
(turn-on-pbcopy))))
:if (not (display-graphic-p))
:init (turn-on-pbcopy)))