chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ea0bc5
)
dot/emacs: Only force primary selection rather than clipboard on X11.
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 6 Dec 2023 14:28:32 +0000
(14:28 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 6 Dec 2023 14:29:11 +0000
(14:29 +0000)
It makes working on Windows rather annoying.
dot/emacs
patch
|
blob
|
blame
|
history
diff --git
a/dot/emacs
b/dot/emacs
index 3c213b9a7eba76f12cddabac0d5a524be2df7b0f..31f612e64f2ad0781a1e032109c380105b3553ad 100644
(file)
--- a/
dot/emacs
+++ b/
dot/emacs
@@
-106,9
+106,10
@@
(require 'paren)
(trap (show-paren-mode t))
(or window-system (mdw-emacs-version-p 22) (menu-bar-mode -1))
-(setq x-select-enable-clipboard nil
- x-select-enable-primary t
- mouse-drag-copy-region t)
+(if (eq window-system 'x)
+ (setq x-select-enable-clipboard nil
+ x-select-enable-primary t))
+(setq mouse-drag-copy-region t)
;; Multiple cursors.