summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2021-09-06 20:34:57 -0700
committerMarius Peter <marius.peter@tutanota.com>2021-09-06 20:34:57 -0700
commit2a6aff6f4929d0abd75f62432933351ec802990c (patch)
tree357afccdaabd86bd718d578c8c4028eff303bb7b
parentc398f0c83669f3c80ee0841f1b947846598e606a (diff)
Beautify Org.
-rw-r--r--smart-documents.org18
1 files changed, 13 insertions, 5 deletions
diff --git a/smart-documents.org b/smart-documents.org
index 88c79d7..11a8889 100644
--- a/smart-documents.org
+++ b/smart-documents.org
@@ -1514,7 +1514,8 @@ PDF. The binding is defined in Section [[Export to PDF]].
#+END_SRC
-**** COMMENT For Org mode, specifically
+
+**** TODO COMMENT For Org mode, specifically
#+BEGIN_SRC emacs-lisp :tangle yes
(defun sd-org-fix-headlines-spacing ()
@@ -1522,13 +1523,20 @@ PDF. The binding is defined in Section [[Export to PDF]].
(save-excursion
(progn
(goto-char (point-min))
- (mark-whole-buffer)
- (delete-blank-lines)
- (org-next-visible-heading)
- (re-search-backward "^$")))
+ (flush-lines "^[[:space:]]*$")
+ (while (re-search-forward "^*" nil t)
+ (beginning-of-line)
+ (newline 2)
+ (next-line)
+ (newline))))
#+END_SRC
+
** Smart quitting
+:PROPERTIES:
+:test: t
+:END:
+
*** Window
Copyright 2019--2024 Marius PETER