Skip to content

Instantly share code, notes, and snippets.

@vermiculus
Created February 14, 2015 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vermiculus/88759fd9f8368adbf663 to your computer and use it in GitHub Desktop.
Save vermiculus/88759fd9f8368adbf663 to your computer and use it in GitHub Desktop.
;; from markdown-mode.el
;; Paragraph filling
(set (make-local-variable 'paragraph-start)
"\f\\|[ \t]*$\\|[ \t]*[*+-] \\|[ \t]*[0-9]+\\.[ \t]\\|[ \t]*: ")
(set (make-local-variable 'paragraph-separate)
"\\(?:[ \t\f]*\\|.* \\)$")
(set (make-local-variable 'adaptive-fill-first-line-regexp)
"\\`[ \t]*>[ \t]*?\\'")
(set (make-local-variable 'adaptive-fill-function)
'markdown-adaptive-fill-function)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment