aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2020-03-18 11:30:59 +0000
committerYann Herklotz <git@yannherklotz.com>2020-03-18 11:30:59 +0000
commita86b1f79cc8ffdf465da1469d0e5948e46efc8f4 (patch)
treed7a07393afc15b6d2987f6d0f4ca0e2415671817
parent467e39232f12ec8fb5a2386254259b89cebe5662 (diff)
downloaddotfiles-a86b1f79cc8ffdf465da1469d0e5948e46efc8f4.tar.gz
dotfiles-a86b1f79cc8ffdf465da1469d0e5948e46efc8f4.zip
Add
-rw-r--r--doom/config.el26
-rw-r--r--doom/packages.el2
2 files changed, 23 insertions, 5 deletions
diff --git a/doom/config.el b/doom/config.el
index 7a688cd..32b47c7 100644
--- a/doom/config.el
+++ b/doom/config.el
@@ -230,13 +230,31 @@
:config
(zettelkasten-mode t))
+;; Publishing projects, this one is for the zettelkasten
+(use-package! ox-publish
+ :config
+ (setq org-publish-project-alist
+ '(("zettelkasten"
+ :base-directory "~/Dropbox/org/zettelkasten/"
+ :base-extension "org"
+ :publishing-directory "~/Dropbox/org/zettelkasten/html/"
+ :publishing-function org-html-publish-to-html
+ :headline-levels 4
+ :auto-preamble t
+ :with-toc nil
+ :section-numbers nil
+ :html-head "<link rel=\"stylesheet\" href=\"css/fonts.css\" />
+<link rel=\"stylesheet\" href=\"css/default.css\" />"
+ )))
+ (add-hook 'org-export-before-processing-hook 'zettelkasten-org-export-preprocessor))
+
;; Mac configuration
(when (eq system-type 'darwin)
(setq mac-right-option-modifier 'none
- mac-option-key-is-meta nil
- mac-command-key-is-meta t
- mac-command-modifier 'meta
- mac-option-modifier nil))
+ mac-option-key-is-meta nil
+ mac-command-key-is-meta t
+ mac-command-modifier 'meta
+ mac-option-modifier nil))
;; Here are some additional functions/macros that could help you configure Doom:
;;
diff --git a/doom/packages.el b/doom/packages.el
index 9ac41ad..ce95615 100644
--- a/doom/packages.el
+++ b/doom/packages.el
@@ -57,4 +57,4 @@
(package! hungry-delete)
(package! color-theme-sanityinc-tomorrow)
(package! zettelkasten
- :recipe (:host github :repo "ymherklotz/emacs-zettelkasten"))
+ :recipe (:host github :repo "ymherklotz/emacs-zettelkasten") :pin "a5bd657820")