dump: fix lag when deleting line with dd by disabling pbcopy

This commit is contained in:
syl20bnr 2018-03-31 01:07:08 -04:00
parent 5d830fca43
commit b44506fa74
1 changed files with 6 additions and 1 deletions

View File

@ -103,9 +103,14 @@
(not (boundp 'mac-system-move-file-to-trash-use-finder)))
:init (osx-trash-setup)))
;; TODO: find a way to enable it in terminal with a dumped Spacemacs
;; if this package is activate while dumping it makes some action lag
;; like 'dd' to delete a line etc...
(defun osx/init-pbcopy ()
(use-package pbcopy
:if (and (spacemacs/system-is-mac) (not (display-graphic-p)))
:if (and (spacemacs/system-is-mac)
(not (display-graphic-p))
(not (spacemacs-is-dumping-p)))
:init (turn-on-pbcopy)))
(defun osx/init-reveal-in-osx-finder ()