emacs-prelude/modules/prelude-markdown.el

19 lines
589 B
EmacsLisp
Raw Normal View History

2013-01-13 15:08:21 +02:00
(prelude-ensure-module-deps '(markdown-mode))
(setq markdown-imenu-generic-expression
'(("title" "^\\(.*\\)[\n]=+$" 1)
("h2-" "^\\(.*\\)[\n]-+$" 1)
("h1" "^# \\(.*\\)$" 1)
("h2" "^## \\(.*\\)$" 1)
("h3" "^### \\(.*\\)$" 1)
("h4" "^#### \\(.*\\)$" 1)
("h5" "^##### \\(.*\\)$" 1)
("h6" "^###### \\(.*\\)$" 1)
("fn" "^\\[\\^\\(.*\\)\\]" 1)))
(add-hook 'markdown-mode-hook
(lambda ()
(setq imenu-generic-expression markdown-imenu-generic-expression)))
(provide 'prelude-markdown)