aboutsummaryrefslogtreecommitdiffstats
path: root/publish.el
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2021-09-11 09:11:54 +0100
committerYann Herklotz <git@yannherklotz.com>2021-09-11 09:11:54 +0100
commit2ac521d9fd0b8104f6f3449732824e8ac275aef0 (patch)
tree8240fbfe60168557cb10de34034791f06b7b02fe /publish.el
parent50213403334c1a0077df5066e25b819af5cf4f20 (diff)
downloadyannherklotz.com-2ac521d9fd0b8104f6f3449732824e8ac275aef0.tar.gz
yannherklotz.com-2ac521d9fd0b8104f6f3449732824e8ac275aef0.zip
Add emacs
Diffstat (limited to 'publish.el')
-rw-r--r--publish.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/publish.el b/publish.el
new file mode 100644
index 0000000..d1ef302
--- /dev/null
+++ b/publish.el
@@ -0,0 +1,14 @@
+(require 'package)
+(package-initialize)
+(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)
+(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
+(package-refresh-contents)
+(package-install 'org-plus-contrib)
+(package-install 'ox-hugo)
+
+(require 'org)
+(require 'ox)
+(require 'ox-hugo)
+
+(find-file-literally "content.org")
+(org-hugo-export-wim-to-md :all-subtrees)