mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix non-string errors from kill-ring
When unpropertizing the kill ring.
This commit is contained in:
@ -102,7 +102,10 @@ fundamental-mode) for performance sake."
|
||||
(defun doom|unpropertize-kill-ring ()
|
||||
"Remove text properties from `kill-ring' in the interest of shrinking the
|
||||
savehist file."
|
||||
(setq kill-ring (mapcar #'substring-no-properties kill-ring)))
|
||||
(setq kill-ring (cl-loop for item in kill-ring
|
||||
if (stringp item)
|
||||
collect (substring-no-properties item)
|
||||
else if item collect it)))
|
||||
(add-hook 'kill-emacs-hook #'doom|unpropertize-kill-ring))
|
||||
|
||||
;; persistent point location in buffers
|
||||
|
Reference in New Issue
Block a user