From aad7bc521f188ebee47f07c79f34e182c6f53b77 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 12 Jul 2021 18:08:55 -0400 Subject: [PATCH] markdown-nested-imenu-heading-index = nil See jrblevin/markdown-mode#578. --- modules/lang/markdown/config.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/lang/markdown/config.el b/modules/lang/markdown/config.el index 6f40978f4..cae827777 100644 --- a/modules/lang/markdown/config.el +++ b/modules/lang/markdown/config.el @@ -26,6 +26,10 @@ capture, the end position, and the output buffer.") markdown-gfm-additional-languages '("sh") markdown-make-gfm-checkboxes-buttons t + ;; HACK Due to jrblevin/markdown-mode#578, invoking `imenu' throws a + ;; 'wrong-type-argument consp nil' error if you use native-comp. + markdown-nested-imenu-heading-index (not (ignore-errors (native-comp-available-p))) + ;; `+markdown-compile' offers support for many transpilers (see ;; `+markdown-compile-functions'), which it tries until one succeeds. markdown-command #'+markdown-compile