diff options
Diffstat (limited to 'init.org')
-rw-r--r-- | init.org | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -185,10 +185,14 @@ pretty, especially when it’s rendered large. (set-face-attribute 'variable-pitch nil :height 1.3 :family "Linux Biolinum") #+END_SRC -* TODO Org-mode +* Org-mode +:PROPERTIES: +:noweb-ref: org-mode +:END: + This is my org mode configuration. Document it. -#+BEGIN_SRC elisp :noweb-ref org-mode-part1 +#+BEGIN_SRC elisp (setq org-ellipsis "⤵") (setq org-src-fontify-natively t) @@ -237,7 +241,7 @@ Since I enable =variable-pitch-mode= in my org-mode buffers I also need to explicitly make a few faces inherit from the =fixed-width= face to be rendered with a monospaced font. -#+BEGIN_SRC elisp :noweb-ref org-mode-faces +#+BEGIN_SRC elisp (set-face-attribute 'org-done nil :strike-through t) (set-face-attribute 'org-headline-done nil :strike-through t @@ -283,7 +287,7 @@ 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 :noweb-ref org-mode-pretty +#+BEGIN_SRC elisp (defvar-local rasmus/org-at-src-begin -1 "Variable that holds whether last position was a ") @@ -359,12 +363,10 @@ may not be efficient." All of this should be loaded lazily. -#+BEGIN_SRC elisp :noweb-ref org-mode +#+BEGIN_SRC elisp :noweb-ref org-mode-lazy (provide 'my/init-org) (with-eval-after-load "org" - <<org-mode-part1>> - <<org-mode-faces>> - <<org-mode-pretty>> + <<org-mode>> ) (require 'org) #+END_SRC @@ -656,7 +658,7 @@ put them all together to build the init file <<tramp>> <<shell>> <<initial-after-packages>> -<<org-mode>> +<<org-mode-lazy>> <<old-init>> #+END_SRC |