Move the if for easy-hugo.

This commit is contained in:
tastytea 2019-08-04 09:53:05 +02:00
parent 5cfceb1b5a
commit 54e30efaeb
1 changed files with 13 additions and 12 deletions

25
init.el
View File

@ -787,18 +787,19 @@ With argument, do this that many times."
("C-;" . iedit-mode))
;; Mode for writing blog posts with hugo.
(if (string= (system-name) "ventiloplattform")
(use-package easy-hugo
:custom
(easy-hugo-basedir "~/Projekte/www/blog.tastytea.de/")
(easy-hugo-url "https://blog.tastytea.de")
(easy-hugo-previewtime "7200") ; 2 hours.
(easy-hugo-postdir "content/posts")
(easy-hugo-default-ext ".adoc")
(easy-hugo-asciidoc-extension "adoc")
(easy-hugo-server-flags "-D")
:bind
("C-x M-h" . easy-hugo)))
(use-package easy-hugo
:if (string= (system-name) "ventiloplattform")
:custom
(easy-hugo-basedir "~/Projekte/www/blog.tastytea.de/")
(easy-hugo-url "https://blog.tastytea.de")
(easy-hugo-previewtime "7200") ; 2 hours.
(easy-hugo-postdir "content/posts")
(easy-hugo-default-ext ".adoc")
(easy-hugo-asciidoc-extension "adoc")
(easy-hugo-server-flags "-D")
:bind
("C-x M-h" . easy-hugo)
)
;; A template system.
(use-package yasnippet)