Emacs config utilizing prelude as a base
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
589 B

  1. (prelude-ensure-module-deps '(markdown-mode))
  2. (setq markdown-imenu-generic-expression
  3. '(("title" "^\\(.*\\)[\n]=+$" 1)
  4. ("h2-" "^\\(.*\\)[\n]-+$" 1)
  5. ("h1" "^# \\(.*\\)$" 1)
  6. ("h2" "^## \\(.*\\)$" 1)
  7. ("h3" "^### \\(.*\\)$" 1)
  8. ("h4" "^#### \\(.*\\)$" 1)
  9. ("h5" "^##### \\(.*\\)$" 1)
  10. ("h6" "^###### \\(.*\\)$" 1)
  11. ("fn" "^\\[\\^\\(.*\\)\\]" 1)))
  12. (add-hook 'markdown-mode-hook
  13. (lambda ()
  14. (setq imenu-generic-expression markdown-imenu-generic-expression)))
  15. (provide 'prelude-markdown)