From f56df1889205512395f8ece8722c15aa4075827f Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 16 Mar 2023 16:51:48 +0100 Subject: [PATCH] Workaround for emacs hanging The issue occurs when any python requirements.txt file is opened and caused by pip-requirements. An upstream issue exists, but has not seen any response and the upstream project looks rather dead https://github.com/Wilfred/pip-requirements.el/issues/11 --- arch-config/.doom.d/config.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch-config/.doom.d/config.el b/arch-config/.doom.d/config.el index e7409315..04cbafd5 100644 --- a/arch-config/.doom.d/config.el +++ b/arch-config/.doom.d/config.el @@ -81,3 +81,7 @@ (setq-default indent-tabs-mode nil) (setq-default tab-width 4) (setq indent-line-function 'insert-tab) + +;; work around emacs hanging when opening any python requirements.txt file +;; see issue https://github.com/doomemacs/doomemacs/issues/5998 +(advice-add #'pip-requirements-fetch-packages :override #'ignore)