From b44506fa74368a5ed9af9d800fe8df541d779c1c Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sat, 31 Mar 2018 01:07:08 -0400 Subject: [PATCH] dump: fix lag when deleting line with dd by disabling pbcopy --- layers/+os/osx/packages.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/layers/+os/osx/packages.el b/layers/+os/osx/packages.el index 9436d8d9d..fce6c04a9 100644 --- a/layers/+os/osx/packages.el +++ b/layers/+os/osx/packages.el @@ -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 ()