mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Remove xclip-mode & osx-clipboard-mode
Due to the varied approaches to terminal environments, I leave it up to the user to handle restoration of the clipboard.
This commit is contained in:
@ -112,15 +112,6 @@ possible."
|
|||||||
;; Save clipboard contents into kill-ring before replacing them
|
;; Save clipboard contents into kill-ring before replacing them
|
||||||
(setq save-interprogram-paste-before-kill t)
|
(setq save-interprogram-paste-before-kill t)
|
||||||
|
|
||||||
;; Fix the clipboard in terminal or daemon Emacs (non-GUI)
|
|
||||||
(add-hook! 'tty-setup-hook
|
|
||||||
(defun doom-init-clipboard-in-tty-emacs-h ()
|
|
||||||
(unless (getenv "SSH_CONNECTION")
|
|
||||||
(cond (IS-MAC
|
|
||||||
(if (require 'osx-clipboard nil t) (osx-clipboard-mode)))
|
|
||||||
((executable-find "xclip")
|
|
||||||
(if (require 'xclip nil t) (xclip-mode)))))))
|
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;;; Extra file extensions to support
|
;;; Extra file extensions to support
|
||||||
|
@ -31,13 +31,11 @@
|
|||||||
;; I've created my own mirror for it because git.savannah.gnu.org runs on a
|
;; I've created my own mirror for it because git.savannah.gnu.org runs on a
|
||||||
;; potato.
|
;; potato.
|
||||||
:recipe (:host github :repo "hlissner/emacs-so-long"))
|
:recipe (:host github :repo "hlissner/emacs-so-long"))
|
||||||
(package! osx-clipboard :ignore (not IS-MAC))
|
|
||||||
(package! undo-tree
|
(package! undo-tree
|
||||||
;; NOTE The version of undo-tree published to ELPA is over 5 years old and
|
;; NOTE The version of undo-tree published to ELPA is over 5 years old and
|
||||||
;; missing some fixes. Just use the maintainer's repo directly.
|
;; missing some fixes. Just use the maintainer's repo directly.
|
||||||
:recipe (:host nil :repo "http://www.dr-qubit.org/git/undo-tree.git"))
|
:recipe (:host nil :repo "http://www.dr-qubit.org/git/undo-tree.git"))
|
||||||
(package! ws-butler)
|
(package! ws-butler)
|
||||||
(package! xclip :ignore (not IS-LINUX))
|
|
||||||
|
|
||||||
;; core-projects.el
|
;; core-projects.el
|
||||||
(package! projectile)
|
(package! projectile)
|
||||||
|
Reference in New Issue
Block a user