about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config.org27
1 files changed, 24 insertions, 3 deletions
diff --git a/config.org b/config.org index 0bc7454..d2eca4c 100644 --- a/config.org +++ b/config.org
@@ -1577,14 +1577,35 @@ from [[https://github.com/Fuco1/.emacs.d/blob/a8230343bb7e2f07f5eac8e63e5506fa16
1577 (variable-pitch)))))) 1577 (variable-pitch))))))
1578 #+end_src 1578 #+end_src
1579 1579
1580***** Align all tags in the buffer on changes
1581
1582from [[https://github.com/mpereira/.emacs.d#align-all-tags-in-the-buffer-on-tag-changes][mpereira]].
1583
1584#+begin_src emacs-lisp
1585 (defun acdw/org-align-all-tags ()
1586 "Align all org tags in the buffer."
1587 (interactive)
1588 (when (eq major-mode 'org-mode)
1589 (org-align-tags t)))
1590
1591 (add-hook 'org-after-tags-change-hook #'acdw/org-align-all-tags)
1592#+end_src
1593
1594**** Source blocks
1595
1596 #+begin_src emacs-lisp
1597 (set-face-attribute 'org-block-begin-line nil
1598 :height 0.85)
1599 #+end_src
1600
1580**** Prettify 1601**** Prettify
1581 1602
1582 #+begin_src emacs-lisp 1603 #+begin_src emacs-lisp
1583 (defun acdw/org-mode-prettify () 1604 (defun acdw/org-mode-prettify ()
1584 "Prettify `org-mode'." 1605 "Prettify `org-mode'."
1585 (dolist (cell '(("[ ]" . ?) ("[X]" . ?☑) ("[-]" . ?◐) 1606 (dolist (cell '(("[ ]" . ?) ("[X]" . ?☑) ("[-]" . ?◐)
1586 ("#+begin_src" . ?✎) ("#+begin_src" . ?✎) 1607 ("#+BEGIN_SRC" . ?✎) ("#+begin_src" . ?✎)
1587 ("#+end_src" . ?■) ("#+end_src" . ?■))) 1608 ("#+END_SRC" . ?■) ("#+end_src" . ?■)))
1588 (add-to-list 'prettify-symbols-alist cell :append)) 1609 (add-to-list 'prettify-symbols-alist cell :append))
1589 (prettify-symbols-mode +1)) 1610 (prettify-symbols-mode +1))
1590 1611