aboutsummaryrefslogtreecommitdiffstats
path: root/oni-core.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2023-08-06 00:19:18 -0700
committerGravatar Tom Willemse2023-08-06 00:19:18 -0700
commit96d0375ce61e9f71e0df5380d0b5ce11233ee0e7 (patch)
tree225e5bb6fa2806ae994f5aceb6baca41ffa3bc10 /oni-core.el
parent867ec0200b1578bef2752ed5f52999ab53d0964c (diff)
downloademacs-config-96d0375ce61e9f71e0df5380d0b5ce11233ee0e7.tar.gz
emacs-config-96d0375ce61e9f71e0df5380d0b5ce11233ee0e7.zip
[oni-core] Store clipboard contents into kill ring before replacing
Diffstat (limited to 'oni-core.el')
-rw-r--r--oni-core.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/oni-core.el b/oni-core.el
index 050796c..acaf361 100644
--- a/oni-core.el
+++ b/oni-core.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2023.0806.001504
+;; Version: 2023.0806.001859
;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview mixed-pitch ace-window vertico marginalia orderless consult embark docstr mini-frame)
;; This program is free software; you can redistribute it and/or modify
@@ -156,6 +156,9 @@ _s_: String list"
;; Discovered through
;; https://github.com/novoid/dot-emacs/blob/23c28944f1991c636ea71ec7d5c3d266e6dbeb8a/config.org#deletes-duplicate-entries-of-the-history-of-the-minibuffer
(setq history-delete-duplicates t)
+;; Save what's in the clipboard into the kill-ring before killing or copying
+;; another string.
+(setq save-interprogram-paste-before-kill t)
;; Increase the threshold for garbage collection for increased performance.
;; Apparently there are some (lsp-mode for example) packages that generate a lot