Add ox-hugo

Resolves https://github.com/syl20bnr/spacemacs/issues/9663

Tested to work on a created-from-scratch spacemacs-base config created with
Emacs-style, ivy preferences.

I just added below to dotspacemacs-configuration-layers

    (org :variables
         org-enable-hugo-support t)

After this PR, C-c C-e in an Org file shows the Hugo export options.
This commit is contained in:
Kaushal Modi 2017-10-09 06:30:17 -04:00 committed by syl20bnr
parent 2531012319
commit a38a6bd4d2
3 changed files with 19 additions and 0 deletions

View File

@ -14,6 +14,7 @@
- [[#gnuplot-support][Gnuplot support]]
- [[#revealjs-support][Reveal.js support]]
- [[#org-journal-support][Org-journal support]]
- [[#hugo-support][Hugo support]]
- [[#different-bullets][Different bullets]]
- [[#project-support][Project support]]
- [[#org-brain-support][Org-brain support]]
@ -202,6 +203,17 @@ For example:
)
#+END_SRC
** Hugo support
To install the Org exporter [[https://ox-hugo.scripter.co][ox-hugo]] that generates [[https://gohugo.io][Hugo]]-compatible Markdown
/plus/ TOML/YAML front-matter, set the variable =org-enable-hugo-support= to
=t=.
#+BEGIN_SRC emacs-lisp
(setq-default dotspacemacs-configuration-layers '(
(org :variables
org-enable-hugo-support t)))
#+END_SRC
** Different bullets
You can tweak the bullets displayed in the org buffer in the function
=dotspacemacs/user-config= of your dotfile by setting the variable

View File

@ -31,3 +31,6 @@ used.")
(defvar org-enable-org-journal-support nil
"If non-nil org-journal is configured.")
(defvar org-enable-hugo-support nil
"If non-nil, Hugo (https://gohugo.io) related packages are configured.")

View File

@ -37,6 +37,7 @@
:toggle org-enable-github-support)
(ox-reveal :toggle org-enable-reveal-js-support)
persp-mode
(ox-hugo :toggle org-enable-hugo-support)
))
(defun org/post-init-company ()
@ -605,3 +606,6 @@ Headline^^ Visit entry^^ Filter^^ Da
"j" 'org-journal-new-entry
"n" 'org-journal-open-next-entry
"p" 'org-journal-open-previous-entry))))
(defun org/init-ox-hugo ()
(use-package ox-hugo :after ox))