diff options
-rw-r--r-- | init.org | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -275,6 +275,7 @@ Since I enable =variable-pitch-mode= in my org-mode buffers I also need to expli org-special-keyword org-verbatim org-todo + org-tag org-done org-hide org-indent @@ -284,6 +285,14 @@ Since I enable =variable-pitch-mode= in my org-mode buffers I also need to expli ;; TODO: this is ugly. When scaling up the variable-pitch face the ;; fixed-pitch face will become even larger. (set-face-attribute face nil :height 0.8)) + +(set-face-attribute 'org-tag nil + :foreground (face-attribute 'default :foreground) + :weight 'normal + :height (face-attribute 'default :height) + :overline nil + :underline nil + :box '(:line-width -1 :color "#859900")) #+END_SRC To ensure that indented blocks line up with their headings despite using =variable-pitch-mode= we set the indentation character to =*= and hide it by setting the foreground colour to the same as the default background colour. @@ -293,6 +302,12 @@ To ensure that indented blocks line up with their headings despite using =variab (set-face-attribute 'org-indent nil :foreground (face-attribute 'default :background)) #+END_SRC +=variable-pitch-mode= also makes it impossible to align tags at a fixed column, so I don’t. Instead I just let tags appear right behind the heading. + +#+BEGIN_SRC elisp +(setq org-tags-column 0) +#+END_SRC + The following snippet is an attempt to prettify the somewhat ugly headers of source code blocks in =org-mode=. The snippet was taken from [[https://pank.eu/blog/pretty-babel-src-blocks.html][the blog of Rasmus Pank]] and slightly modified to suit my needs. #+BEGIN_SRC elisp |