mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
core-editor: conform hook function to naming conventions
This commit is contained in:
@ -52,15 +52,15 @@
|
|||||||
(savehist-mode 1)
|
(savehist-mode 1)
|
||||||
|
|
||||||
;; Remove text-property cruft from history
|
;; Remove text-property cruft from history
|
||||||
(defun unpropertize-savehist ()
|
(defun doom|unpropertize-savehist ()
|
||||||
(mapc (lambda (list)
|
(mapc (lambda (list)
|
||||||
(when (boundp list)
|
(when (boundp list)
|
||||||
(set list (mapcar 'substring-no-properties (eval list)))))
|
(set list (mapcar 'substring-no-properties (eval list)))))
|
||||||
'(kill-ring minibuffer-history helm-grep-history helm-ff-history
|
'(kill-ring minibuffer-history helm-grep-history helm-ff-history
|
||||||
file-name-history read-expression-history extended-command-history
|
file-name-history read-expression-history extended-command-history
|
||||||
evil-ex-history)))
|
evil-ex-history)))
|
||||||
(add-hook 'kill-emacs-hook 'unpropertize-savehist)
|
(add-hook 'kill-emacs-hook 'doom|unpropertize-savehist)
|
||||||
(add-hook 'savehist-save-hook 'unpropertize-savehist)
|
(add-hook 'savehist-save-hook 'doom|unpropertize-savehist)
|
||||||
|
|
||||||
;; Keep track of recently opened files
|
;; Keep track of recently opened files
|
||||||
(require 'recentf)
|
(require 'recentf)
|
||||||
|
Reference in New Issue
Block a user