From 36e73aedb6eba6bb03f921241adab9e73f3666e7 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 6 Jan 2020 15:06:28 -0500 Subject: [PATCH] Disable xclip-mode on windows --- core/core-editor.el | 11 ++++++----- core/packages.el | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/core/core-editor.el b/core/core-editor.el index 8dba9ea79..070a72e49 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -132,11 +132,12 @@ possible." ;; Fixes the clipboard in tty Emacs by piping clipboard I/O through xclip, xsel, ;; pb{copy,paste}, wl-copy, termux-clipboard-get, or getclip (cygwin). -(add-hook! 'tty-setup-hook - (defun doom-init-clipboard-in-tty-emacs-h () - (and (not (getenv "SSH_CONNECTION")) - (require 'xclip nil t) - (xclip-mode +1)))) +(unless IS-WINDOWS + (add-hook! 'tty-setup-hook + (defun doom-init-clipboard-in-tty-emacs-h () + (and (not (getenv "SSH_CONNECTION")) + (require 'xclip nil t) + (xclip-mode +1))))) ;; diff --git a/core/packages.el b/core/packages.el index 19b43c8a6..62a7330e8 100644 --- a/core/packages.el +++ b/core/packages.el @@ -34,7 +34,7 @@ ;; Use my fork of ws-butler, which has a few choice improvements and ;; optimizations (the original has been abandoned). :recipe (:host github :repo "hlissner/ws-butler")) -(package! xclip) +(package! xclip :ignore IS-WINDOWS) ;; core-projects.el (package! projectile)