Enable xclip in emacs

This commit is contained in:
Dave Gallant
2021-01-27 14:03:55 -05:00
parent 548b3815e0
commit 0b03b6be2d
2 changed files with 11 additions and 5 deletions

View File

@@ -356,6 +356,7 @@
spinner
terraform-mode
web-mode
xclip
]);
};
};

View File

@@ -1,6 +1,16 @@
;; Enable Mouse
(xterm-mouse-mode 1)
;; Enable xclip
(require 'xclip)
(define-globalized-minor-mode global-xclip-mode
xclip-mode xclip-mode)
(global-xclip-mode 1)
;; Fix clipboard
(setq x-select-enable-clipboard t)
;; Enable Line Numbers
(global-display-line-numbers-mode 1)
@@ -30,11 +40,6 @@
;; Prefer UTF-8.
(prefer-coding-system 'utf-8)
;; Improved handling of clipboard in GNU/Linux and otherwise.
(setq select-enable-clipboard t
select-enable-primary t
save-interprogram-paste-before-kill t)
;; Disable some GUI distractions.
(tool-bar-mode -1)
(menu-bar-mode -1)