Move the if for easy-hugo.

This commit is contained in:
tastytea 2019-08-04 09:53:05 +02:00
parent 5cfceb1b5a
commit 54e30efaeb

25
init.el
View File

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