branch: elpa/markdown-mode
commit 1bc4b48a8577e3b9de44df1df568ab6cd5fc72a1
Author: Shohei YOSHIDA <syo...@gmail.com>
Commit: Shohei YOSHIDA <syo...@gmail.com>

    Disable `imenu-submenus-on-top` by default
---
 markdown-mode.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/markdown-mode.el b/markdown-mode.el
index 1bdd0b1ec3..e9d9bec8fc 100644
--- a/markdown-mode.el
+++ b/markdown-mode.el
@@ -10231,10 +10231,10 @@ rows and columns and the column alignment."
   ;; Add a buffer-local hook to reload after file-local variables are read
   (add-hook 'hack-local-variables-hook #'markdown-handle-local-variables nil t)
   ;; For imenu support
-  (setq imenu-create-index-function
-        (if markdown-nested-imenu-heading-index
-            #'markdown-imenu-create-nested-index
-          #'markdown-imenu-create-flat-index))
+  (setq-local imenu-create-index-function (if 
markdown-nested-imenu-heading-index
+                                              
#'markdown-imenu-create-nested-index
+                                            #'markdown-imenu-create-flat-index)
+              imenu-submenus-on-top nil)
 
   ;; Defun movement
   (setq-local beginning-of-defun-function #'markdown-beginning-of-defun)

Reply via email to