summaryrefslogtreecommitdiff
path: root/init.org
diff options
context:
space:
mode:
Diffstat (limited to 'init.org')
-rw-r--r--init.org10
1 files changed, 10 insertions, 0 deletions
diff --git a/init.org b/init.org
index cf2f878..c782473 100644
--- a/init.org
+++ b/init.org
@@ -315,6 +315,16 @@ face to be rendered with a monospaced font.
(set-face-attribute face nil :height 0.8))
#+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.
+
+#+BEGIN_SRC elisp
+(setq org-indent-boundary-char ?*)
+(set-face-attribute 'org-indent nil :foreground (face-attribute 'default :background))
+#+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.