Skip to content
Browse files

fix problem with comparing files for user init file compilation hook

  • Loading branch information...
1 parent 3e4b7ae commit cdf3d1758ec4b248fd4bce33d5db825e0e511f3b @bostonaholic bostonaholic committed Jun 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 .emacs.d/config-hooks.el
View
2 .emacs.d/config-hooks.el
@@ -13,7 +13,7 @@
;; Automatically recompile the emacs init file on buffer-save or exit
;; ---------------------------------------------------------------------------
(defun my-emacs-lisp-mode-hook ()
- (when (files-equal-p (or buffer-file-name "") user-init-file)
+ (when (equal (or buffer-file-name "") user-init-file)
(add-hook 'after-save-hook 'byte-compile-user-init-file t t)))
(add-hook 'emacs-lisp-mode-hook 'my-emacs-lisp-mode-hook)

0 comments on commit cdf3d17

Please sign in to comment.
Something went wrong with that request. Please try again.