core-editor: conform hook function to naming conventions
This commit is contained in:
parent
ab2f89e077
commit
92ac8c1dba
1 changed files with 5 additions and 5 deletions
|
@ -52,15 +52,15 @@
|
|||
(savehist-mode 1)
|
||||
|
||||
;; Remove text-property cruft from history
|
||||
(defun unpropertize-savehist ()
|
||||
(defun doom|unpropertize-savehist ()
|
||||
(mapc (lambda (list)
|
||||
(when (boundp list)
|
||||
(set list (mapcar 'substring-no-properties (eval list)))))
|
||||
'(kill-ring minibuffer-history helm-grep-history helm-ff-history
|
||||
file-name-history read-expression-history extended-command-history
|
||||
evil-ex-history)))
|
||||
(add-hook 'kill-emacs-hook 'unpropertize-savehist)
|
||||
(add-hook 'savehist-save-hook 'unpropertize-savehist)
|
||||
file-name-history read-expression-history extended-command-history
|
||||
evil-ex-history)))
|
||||
(add-hook 'kill-emacs-hook 'doom|unpropertize-savehist)
|
||||
(add-hook 'savehist-save-hook 'doom|unpropertize-savehist)
|
||||
|
||||
;; Keep track of recently opened files
|
||||
(require 'recentf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue