aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/lisp/init-package.el15
1 files changed, 9 insertions, 6 deletions
diff --git a/.emacs.d/lisp/init-package.el b/.emacs.d/lisp/init-package.el
index f7980e5..fbeff7c 100644
--- a/.emacs.d/lisp/init-package.el
+++ b/.emacs.d/lisp/init-package.el
@@ -36,18 +36,21 @@ locate PACKAGE.
This function is copied from
https://github.com/purcell/emacs.d/blob/master/lisp/init-elpa.el"
- (condition-case err
- (gx/require-package package min-version no-refresh)
- (error
- (message "Couldn't install optional package `%s': %S" package err)
- nil)))
+ ;; Autoloading generation will create wrong path in Emacs 28. Set
+ ;; find-file-visit-truename nil as a temporary workaround.
+ ;; TODO clean up after it is fixed by upstream.
+ (let ((find-file-visit-truename nil))
+ (condition-case err
+ (gx/require-package package min-version no-refresh)
+ (error
+ (message "Couldn't install optional package `%s': %S" package err)
+ nil))))
(setq package-enable-at-startup nil)
(setq package-native-compile t)
(package-initialize)
(gx/maybe-require-package 'auto-package-update)
-(autoload #'auto-package-update-now "auto-package-update" nil t)
(setq auto-package-update-delete-old-versions t
auto-package-update-hide-results t)