From 96d0375ce61e9f71e0df5380d0b5ce11233ee0e7 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 6 Aug 2023 00:19:18 -0700 Subject: [oni-core] Store clipboard contents into kill ring before replacing --- oni-core.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'oni-core.el') 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 ;; 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 -- cgit v1.2.3-54-g00ecf