diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-05-06 23:02:06 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-05-06 23:02:06 -0400 |
commit | a5f1a51e9615ebe0b3ed0ff0d4e0c1b233e50a41 (patch) | |
tree | 460fde39a78686533041133cd298675b7db2f580 | |
parent | 78e80e056452b736903775efc5947e2f416b87c0 (diff) | |
download | emacs.d-a5f1a51e9615ebe0b3ed0ff0d4e0c1b233e50a41.tar.gz |
Advice org-md-paragraph to fill contents
-rw-r--r-- | lisp/init-org.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/init-org.el b/lisp/init-org.el index 6d234bf..18aabf2 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -695,6 +695,15 @@ beginning of the link." ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))) + +(defun km/org-md--fill-string (contents) + "Use `org-ascii--fill-string' to fill ox-md paragraphs." + (org-ascii--fill-string contents km/org-md-fill-column + nil)) + +(after 'ox-md + (advice-add 'org-md-paragraph :filter-return #'km/org-md--fill-string)) + ;;; Org Babel |