aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-06-13 23:17:03 +0800
committerGuangxiong Lin <[email protected]>2022-06-13 23:21:14 +0800
commit36286917b3e209fc4556d7350c065aee55a6f7ec (patch)
tree77e9a579026e86368c089fee0f8490a52b0b9529 /.emacs.d
parentc90d004fbdd41f5b5bdae81b201b33d99d9aaa0d (diff)
downloaddotfiles-36286917b3e209fc4556d7350c065aee55a6f7ec.tar.gz
dotfiles-36286917b3e209fc4556d7350c065aee55a6f7ec.tar.bz2
dotfiles-36286917b3e209fc4556d7350c065aee55a6f7ec.zip
Fix autoload issue in emacs (temporary workaround)
Diffstat (limited to '.emacs.d')
-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)