summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.el b/init.el
index 5453cef..b9077a7 100644
--- a/init.el
+++ b/init.el
@@ -43,6 +43,14 @@
(setq custom-file (concat ravi/init-dir "custom.el"))
;; Initialize package handling: currently using only the official repository and MELPA
+;; Work around emacs bug 52292 on emacs 28+
+;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=52292
+(defun faerryn-patch-package-find-file-visit-truename (oldfun &rest r)
+ (let ((find-file-visit-truename nil))
+ (apply oldfun r)))
+(advice-add #'package-install :around
+ #'faerryn-patch-package-find-file-visit-truename)
+
(setq package-archives
'(("gnu" . "http://elpa.gnu.org/packages/")
("nongnu" . "https://elpa.nongnu.org/nongnu/")