From 92ac8c1dbacf56a989158239a3ebc6e93b3f7fdc Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 11 Feb 2017 06:02:13 -0500 Subject: [PATCH] core-editor: conform hook function to naming conventions --- core/core-editor.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/core-editor.el b/core/core-editor.el index c23a56dd1..c822626e8 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -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)