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:
parent
2531012319
commit
a38a6bd4d2
|
@ -14,6 +14,7 @@
|
||||||
- [[#gnuplot-support][Gnuplot support]]
|
- [[#gnuplot-support][Gnuplot support]]
|
||||||
- [[#revealjs-support][Reveal.js support]]
|
- [[#revealjs-support][Reveal.js support]]
|
||||||
- [[#org-journal-support][Org-journal support]]
|
- [[#org-journal-support][Org-journal support]]
|
||||||
|
- [[#hugo-support][Hugo support]]
|
||||||
- [[#different-bullets][Different bullets]]
|
- [[#different-bullets][Different bullets]]
|
||||||
- [[#project-support][Project support]]
|
- [[#project-support][Project support]]
|
||||||
- [[#org-brain-support][Org-brain support]]
|
- [[#org-brain-support][Org-brain support]]
|
||||||
|
@ -202,6 +203,17 @@ For example:
|
||||||
)
|
)
|
||||||
#+END_SRC
|
#+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
|
** Different bullets
|
||||||
You can tweak the bullets displayed in the org buffer in the function
|
You can tweak the bullets displayed in the org buffer in the function
|
||||||
=dotspacemacs/user-config= of your dotfile by setting the variable
|
=dotspacemacs/user-config= of your dotfile by setting the variable
|
||||||
|
|
|
@ -31,3 +31,6 @@ used.")
|
||||||
|
|
||||||
(defvar org-enable-org-journal-support nil
|
(defvar org-enable-org-journal-support nil
|
||||||
"If non-nil org-journal is configured.")
|
"If non-nil org-journal is configured.")
|
||||||
|
|
||||||
|
(defvar org-enable-hugo-support nil
|
||||||
|
"If non-nil, Hugo (https://gohugo.io) related packages are configured.")
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
:toggle org-enable-github-support)
|
:toggle org-enable-github-support)
|
||||||
(ox-reveal :toggle org-enable-reveal-js-support)
|
(ox-reveal :toggle org-enable-reveal-js-support)
|
||||||
persp-mode
|
persp-mode
|
||||||
|
(ox-hugo :toggle org-enable-hugo-support)
|
||||||
))
|
))
|
||||||
|
|
||||||
(defun org/post-init-company ()
|
(defun org/post-init-company ()
|
||||||
|
@ -605,3 +606,6 @@ Headline^^ Visit entry^^ Filter^^ Da
|
||||||
"j" 'org-journal-new-entry
|
"j" 'org-journal-new-entry
|
||||||
"n" 'org-journal-open-next-entry
|
"n" 'org-journal-open-next-entry
|
||||||
"p" 'org-journal-open-previous-entry))))
|
"p" 'org-journal-open-previous-entry))))
|
||||||
|
|
||||||
|
(defun org/init-ox-hugo ()
|
||||||
|
(use-package ox-hugo :after ox))
|
||||||
|
|
Loading…
Reference in a new issue