summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-01-13 19:53:11 -0600
committerCase Duckworth2021-01-13 19:53:22 -0600
commitea1f015a41523bb6b1e6163341d935285813913a (patch)
tree18c112a4e55db6e7bfa3a10bec58ed72612f18ee
parentBrowse with Firefox (diff)
downloademacs-ea1f015a41523bb6b1e6163341d935285813913a.tar.gz
emacs-ea1f015a41523bb6b1e6163341d935285813913a.zip
Align org tags on changes
This probably isn’t necessary with my particular setup…
-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