diff --git a/core/core-editor.el b/core/core-editor.el index 40e59d6ff..a98428e08 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -262,9 +262,12 @@ possible." (setq savehist-file (concat doom-cache-dir "savehist")) :config (setq savehist-save-minibuffer-history t - savehist-autosave-interval nil ; save on kill only - savehist-additional-variables '(kill-ring search-ring regexp-search-ring)) - (add-hook! 'kill-emacs-hook + savehist-autosave-interval nil ; save on kill only + savehist-additional-variables + '(kill-ring ; persist clipboard + mark-ring global-mark-ring ; persist marks + search-ring regexp-search-ring)) ; persist searches + (add-hook! 'savehist-save-hook (defun doom-unpropertize-kill-ring-h () "Remove text properties from `kill-ring' for a smaller savehist file." (setq kill-ring (cl-loop for item in kill-ring