]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch.el
emacs: Respect `load-prefer-newer` when loading `notmuch-init-file'
[notmuch] / emacs / notmuch.el
index a980c7a212358a9e54943d90b1a3b4bcbd9e3e45..5a24d8a749dda590fc4a1f89d9c3fe62f76553a3 100644 (file)
@@ -1148,8 +1148,6 @@ beginning of the line."
 
 ;; After provide to avoid loops if notmuch was require'd via notmuch-init-file.
 (if init-file-user ; don't load init file if the -q option was used.
-    (let ((init-file (locate-file notmuch-init-file '("/")
-                                 (get-load-suffixes))))
-      (if init-file (load init-file nil t t))))
+    (load notmuch-init-file t t nil t))
 
 ;;; notmuch.el ends here