summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2016-07-14 12:58:31 +0200
committerrekado <rekado@elephly.net>2016-07-14 12:58:31 +0200
commited67857db5167d1fd0fbee0099e56c9a756db649 (patch)
tree26ea8448c00e88410622ab805d4fd1fe2d17b1d6
parent8c3ee31b5e9c77d3a1079495bafe3aff94da387f (diff)
Simplify org configuration.
-rw-r--r--init.org20
1 files changed, 11 insertions, 9 deletions
diff --git a/init.org b/init.org
index 6bc6b12..8300c8f 100644
--- a/init.org
+++ b/init.org
@@ -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