Skip to content

Commit 1bc4b48

Browse files
committed
Disable imenu-submenus-on-top by default
1 parent 5bf2987 commit 1bc4b48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

markdown-mode.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10231,10 +10231,10 @@ rows and columns and the column alignment."
1023110231
;; Add a buffer-local hook to reload after file-local variables are read
1023210232
(add-hook 'hack-local-variables-hook #'markdown-handle-local-variables nil t)
1023310233
;; For imenu support
10234-
(setq imenu-create-index-function
10235-
(if markdown-nested-imenu-heading-index
10236-
#'markdown-imenu-create-nested-index
10237-
#'markdown-imenu-create-flat-index))
10234+
(setq-local imenu-create-index-function (if markdown-nested-imenu-heading-index
10235+
#'markdown-imenu-create-nested-index
10236+
#'markdown-imenu-create-flat-index)
10237+
imenu-submenus-on-top nil)
1023810238

1023910239
;; Defun movement
1024010240
(setq-local beginning-of-defun-function #'markdown-beginning-of-defun)

0 commit comments

Comments
 (0)