diff --git a/modules/prelude-emacs-lisp.el b/modules/prelude-emacs-lisp.el index 202de20..4b8753c 100644 --- a/modules/prelude-emacs-lisp.el +++ b/modules/prelude-emacs-lisp.el @@ -37,11 +37,12 @@ (defun prelude-remove-elc-on-save () "If you're saving an elisp file, likely the .elc is no longer valid." - (make-local-variable 'after-save-hook) (add-hook 'after-save-hook (lambda () (if (file-exists-p (concat buffer-file-name "c")) - (delete-file (concat buffer-file-name "c")))))) + (delete-file (concat buffer-file-name "c")))) + nil + t)) (defun prelude-visit-ielm () "Switch to default `ielm' buffer.