Disable xclip-mode on windows

This commit is contained in:
Henrik Lissner 2020-01-06 15:06:28 -05:00
parent 2d97b877ed
commit 36e73aedb6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 7 additions and 6 deletions

View file

@ -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)))))
;;

View file

@ -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)