aboutsummaryrefslogtreecommitdiff
path: root/emacs/init.org
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2018-02-18 22:15:24 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2018-02-18 22:15:24 +0100
commitb317a11d1afc1a0c8968adbd6ff4d01541ee22ee (patch)
treee4db0020198b813d0078b4a9e7f5b05be59b207a /emacs/init.org
parent2a12410cdce2fcea09b2acf06458a418fb9899c1 (diff)
downloaddotfiles-b317a11d1afc1a0c8968adbd6ff4d01541ee22ee.tar.gz
dotfiles-b317a11d1afc1a0c8968adbd6ff4d01541ee22ee.zip
emacs: added org-mssola publishing
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/init.org')
-rw-r--r--emacs/init.org23
1 files changed, 23 insertions, 0 deletions
diff --git a/emacs/init.org b/emacs/init.org
index 3423846..b6aaf74 100644
--- a/emacs/init.org
+++ b/emacs/init.org
@@ -1558,6 +1558,29 @@ And finally set =org-capture-templates=.
("i" "idea" entry (file "") "* %? :IDEA:\n%U\n%a\n")))
#+END_SRC
+** Publish project
+
+I write blog posts with org-mode. Here's the trick:
+
+#+BEGIN_SRC elisp
+(setq org-publish-project-alist
+ '(("org-mssola"
+ ;; Path to your org files.
+ :base-directory "~/Projects/mssola/jo/org/"
+ :base-extension "org"
+
+ ;; Path to your Jekyll project.
+ :publishing-directory "~/Projects/mssola/jo/_i18n"
+ :recursive t
+ :publishing-function org-html-publish-to-html
+ :headline-levels 4
+ :html-extension "html"
+ :body-only t ;; Only export section between <body> </body>
+ )
+
+ ("mssola" :components ("org-mssola"))))
+#+END_SRC
+
** Other
Insert a <kbd></kbd> value in org mode. See this [[http://emacs.stackexchange.com/questions/2206/i-want-to-have-the-kbd-tags-for-my-blog-written-in-org-mode][StackExchange answer]].