From 97be5499d926a74eff7130ff9cec250105db2daf Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 22 Jan 2023 11:38:40 -0800 Subject: fix(markdown): workaround related to imenu There is a bug with the markdown mode where imenu does not work when native compilation is used. This is a workaround recommended on the issue tracker. Change-Id: I171f942ef7848e34e382b7896af03750b41f3721 --- emacs/custom/my-text.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'emacs') diff --git a/emacs/custom/my-text.el b/emacs/custom/my-text.el index 80cdb32..37f9773 100644 --- a/emacs/custom/my-text.el +++ b/emacs/custom/my-text.el @@ -4,6 +4,14 @@ ;;; Code: + +;; BUG: this is a work around for markdown-mode - without this, imenu +;; won't work in that mode, which is preventing efficient navigation. +;; The following link has more details: +;; https://github.com/jrblevin/markdown-mode/issues/578#issuecomment-1126380098 +(require 'comp) +(setq native-comp-deferred-compilation-deny-list '("markdown-mode\\.el$")) + (require 'markdown-mode) (require 'ispell) (require 'abbrev) -- cgit 1.4.1