summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-01-22 11:38:40 -0800
committerFranck Cuny <franck@fcuny.net>2023-01-22 11:38:40 -0800
commit97be5499d926a74eff7130ff9cec250105db2daf (patch)
tree4d187f50cc5dec684dfe74c1bef8f44206d93782
parentref(ui): use standard-theme (diff)
downloademacs.d-97be5499d926a74eff7130ff9cec250105db2daf.tar.gz
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
-rw-r--r--emacs/custom/my-text.el8
1 files changed, 8 insertions, 0 deletions
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)