summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-06-04 14:46:40 +0200
committerAlan Pearce2017-06-04 14:46:40 +0200
commit8eeadd7d1930abb31a330f14f2735a10584998da (patch)
tree1984f6bc16fd55e328fab163ae7181d5b713f7d9 /emacs
parentc215cfcd4d857aba68b70fbf5c8f3131d2763911 (diff)
downloaddotfiles-8eeadd7d1930abb31a330f14f2735a10584998da.tar.lz
dotfiles-8eeadd7d1930abb31a330f14f2735a10584998da.tar.zst
dotfiles-8eeadd7d1930abb31a330f14f2735a10584998da.zip
Emacs: Configure easy-hugo
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org11
1 files changed, 11 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 5675f56..34f24c4 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -1040,6 +1040,17 @@ Directional window movement
          ("S-<up>"    . windmove-up)
          ("S-<down>"  . windmove-down)))
 #+END_SRC
+* Blogging
+
+I have a [[https://alanpearce.uk][blog]] that I publish with hugo.
+
+#+BEGIN_SRC emacs-lisp
+(use-package easy-hugo
+  :config (setq easy-hugo-basedir (car (split-string (shell-command-to-string "ghq list --full-path alanpearce.uk")))
+                easy-hugo-url "https://alanpearce.uk"
+                easy-hugo-default-ext ".md"))
+#+END_SRC
+
 * Completion
 
 Make built-in completion a bit more intelligent, by adding substring