diff options
-rw-r--r-- | lisp/init-org.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/init-org.el b/lisp/init-org.el index 0300d1a..9d05e32 100644 --- a/lisp/init-org.el +++ b/lisp/init-org.el @@ -246,6 +246,14 @@ to (beginning-of-line) (open-line 1))))) +(defun km/org-normalize-spaces () + "Reduce to single spaces and add space before headings." + (interactive) + (km/reduce-to-single-spaces) + (km/org-add-blank-before-heading)) + +(define-key km/org-prefix-map "n" 'km/org-normalize-spaces) + ;;; Org in other modes (defun km/load-orgstruct () (turn-on-orgstruct++) |