Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with having ox-hugo installed on Spacemacs #82

Closed
amosbird opened this issue Sep 28, 2017 · 29 comments
Closed

Issue with having ox-hugo installed on Spacemacs #82

amosbird opened this issue Sep 28, 2017 · 29 comments
Labels

Comments

@amosbird
Copy link

Hi, this project looks very promising. But I cannot find a way to set HUGO_BASE_DIR. The document only says

Before you export
Before you export check that these properties are set as you need:

HUGO_SECTION: The default Hugo section name for all the posts. See here for more information on Hugo sections. It is common for this property to be set to posts or blog. The default value is set using org-hugo-default-section-directory.
HUGO_BASE_DIR: Root directory of the source for the Hugo site. If this is set to ~/hugo/, the exported Markdown files will be saved to ~/hugo/content/<HUGO_SECTION>/ directory. By default, the Markdown files reside in a hierarchy under the content/ directory in the site root directory (ref). If you try to export without setting this property, you will get this error:

user-error: It is mandatory to set the HUGO_BASE_DIR property
Important: If you choose to export an Org subtree as a post, you need to set the EXPORT_FILE_NAME subtree property. That property is used by this package to figure out where the current post starts.
@kaushalmodi
Copy link
Owner

Please see this example Org file: https://raw.githubusercontent.com/kaushalmodi/ox-hugo/master/test/site/content-org/screenshot-subtree-export-example.org

If the Org file is in ~/hugo_base_dir/content-org/ dir, you would set #+HUGO_BASE_DIR: ../ as shown in the example.

It is the one I show in the first screenshot in the README.

@amosbird
Copy link
Author

I've tried setting those variables at the top of my org file, but it still fails with the same error.

@kaushalmodi
Copy link
Owner

Can you share your example file?

Also try just running the examples in this repo: Clone this repo and run make test. Does that work?

@amosbird
Copy link
Author

Ok :) . it's quite simple

#+HUGO_BASE_DIR: ~/sites/blog
#+HUGO_SECTION: ~/site/blog/content

#+HUGO_WEIGHT: auto
#+HUGO_AUTO_SET_LASTMOD: t

* KV


** WhiteDB

   test

@kaushalmodi
Copy link
Owner

Hmm.. the only thing that looks different is the use of ~ in paths. Once I get to a computer, I'll check if that's actually a problem, and if so, will fix that.

In the meanwhile, 2 things:

  • Use absolute or relative path for HUGO_BASE_DIR. Examples: ./, ../, /home/foo/hugo/
  • HUGO_SECTION is only the dir path under the Hugo content/ dir. So, if you want the exported file to go directly into content/, set HUGO_SECTION to just ./ i.e. #+HUGO_SECTION: ./.

@amosbird
Copy link
Author

Thanks! well this doesn't work either.

#+HUGO_BASE_DIR: /home/amos/sites/blog
#+HUGO_SECTION: ./
#+HUGO_WEIGHT: auto
#+HUGO_AUTO_SET_LASTMOD: t

* KV

** WhiteDB

   test

@kaushalmodi
Copy link
Owner

kaushalmodi commented Sep 28, 2017

OK, did make test work?

Also, please submit a detailed bug report as explained here: https://ox-hugo.scripter.co/doc/debug/

@kaushalmodi
Copy link
Owner

Also what command are you running to export? If you are doing subtree export (C-c C-e H A), you need the :EXPORT_FILE_NAME property. If you are doing file export (C-c C-e H h), you need the #+TITLE: keyword. At present, your example is missing both.

What is the exact error?

@amosbird
Copy link
Author

make test works. I'm using M-x org-hugo-export-to-md because it isn't shown in the org-export dispatch window.

@kaushalmodi
Copy link
Owner

kaushalmodi commented Sep 28, 2017

OK, that explains. You are not supposed to use that. I will make that function non-interactive.

Use only one of the 3 export bindings here: https://ox-hugo.scripter.co/doc/usage/

See if that helps. If not, please report back. Also see my previous comment about subtree and file exports.

@amosbird
Copy link
Author

oh, ok. hmm, but after I eval (use-package ox-hugo :after ox) it still doesn't appear in the dispatch menu.

@kaushalmodi
Copy link
Owner

kaushalmodi commented Sep 28, 2017

Let's see if your Org installation is in order. Please follow https://ox-hugo.scripter.co/doc/debug/

@kaushalmodi
Copy link
Owner

Also see if just plain (require 'ox-hugo) helps.

@amosbird
Copy link
Author

Checking 3 files in /home/amos/.emacs.d/layers/+spacemacs/spacemacs-visual/local/zoom-frm...
Checking 4 files in /home/amos/.emacs.d/elpa/zeal-at-point-20170427.2042...
Checking 4 files in /home/amos/.emacs.d/elpa/yapfify-20170519.115...
Checking 4 files in /home/amos/.emacs.d/elpa/yaml-mode-20170727.1531...
Checking 4 files in /home/amos/.emacs.d/elpa/ws-butler-20170111.1534...
Checking 4 files in /home/amos/.emacs.d/elpa/winum-20170430.1629...
Checking 4 files in /home/amos/.emacs.d/elpa/web-mode-20170906.214...
Checking 4 files in /home/amos/.emacs.d/elpa/web-beautify-20161115.1447...
Checking 4 files in /home/amos/.emacs.d/elpa/volatile-highlights-20160611.1855...
Checking 4 files in /home/amos/.emacs.d/elpa/vimrc-mode-20170814.1837...
Checking 4 files in /home/amos/.emacs.d/elpa/vi-tilde-fringe-20141027.1942...
Checking 4 files in /home/amos/.emacs.d/elpa/uuidgen-20140918.1601...
Checking 4 files in /home/amos/.emacs.d/elpa/unicode-fonts-20150827.632...
Checking 6 files in /home/amos/.emacs.d/elpa/ucs-utils-20150826.2214...
Checking 4 files in /home/amos/.emacs.d/elpa/font-utils-20150807.151...
Checking 4 files in /home/amos/.emacs.d/elpa/unfill-20170722.1846...
Checking 4 files in /home/amos/.emacs.d/elpa/toml-mode-20161107.1000...
Checking 4 files in /home/amos/.emacs.d/elpa/toc-org-20170518.451...
Checking 1 files in /home/amos/.emacs.d/private/ab-package/local/tmux...
Checking 4 files in /home/amos/.emacs.d/elpa/thrift-20140312.1348...
Checking 4 files in /home/amos/.emacs.d/elpa/tagedit-20161121.55...
Checking 8 files in /home/amos/.emacs.d/elpa/synosaurus-20170621.957...
Checking 4 files in /home/amos/.emacs.d/elpa/symon-20170224.33...
Checking 4 files in /home/amos/.emacs.d/elpa/string-inflection-20170419.1638...
Checking 4 files in /home/amos/.emacs.d/elpa/sql-indent-20170112.1507...
Checking 1 files in /home/amos/.emacs.d/layers/+spacemacs/spacemacs-editing/local/spacemacs-whitespace-cleanup...
Checking 1 files in /home/amos/.emacs.d/layers/+spacemacs/spacemacs-purpose/local/spacemacs-purpose-popwin...
Checking 8 files in /home/amos/.emacs.d/elpa/spaceline-20170630.2327...
Checking 8 files in /home/amos/.emacs.d/elpa/powerline-20170708.1442...
Checking 1 files in /home/amos/.emacs.d/layers/+spacemacs/spacemacs-org/local/space-doc...
Checking 4 files in /home/amos/.emacs.d/elpa/smeargle-20161212.1558...
Checking 4 files in /home/amos/.emacs.d/elpa/slim-mode-20170728.648...
Checking 4 files in /home/amos/.emacs.d/elpa/sdcv-20170801.2216...
Checking 4 files in /home/amos/.emacs.d/elpa/showtip-20090830.340...
Checking 4 files in /home/amos/.emacs.d/elpa/scss-mode-20150107.1400...
Checking 4 files in /home/amos/.emacs.d/elpa/sass-mode-20161006.2326...
Checking 4 files in /home/amos/.emacs.d/elpa/restart-emacs-20170609.905...
Checking 3 files in /home/amos/.emacs.d/elpa/realgud-20170907.916...
Checking 4 files in /home/amos/.emacs.d/elpa/test-simple-20170527.832...
Checking 4 files in /home/amos/.emacs.d/elpa/loc-changes-20160801.1008...
Checking 6 files in /home/amos/.emacs.d/elpa/load-relative-20170526.310...
Checking 4 files in /home/amos/.emacs.d/elpa/ranger-20170817.857...
Checking 4 files in /home/amos/.emacs.d/elpa/rainbow-mode-0.13...
Checking 4 files in /home/amos/.emacs.d/elpa/rainbow-identifiers-20141102.726...
Checking 4 files in /home/amos/.emacs.d/elpa/rainbow-delimiters-20160430.2358...
Checking 4 files in /home/amos/.emacs.d/elpa/racer-20170218.516...
Checking 4 files in /home/amos/.emacs.d/elpa/quickrun-20170222.1715...
Checking 4 files in /home/amos/.emacs.d/elpa/pyvenv-20170826.812...
Checking 4 files in /home/amos/.emacs.d/elpa/pytest-20170614.745...
Checking 1 files in /home/amos/.emacs.d/layers/+lang/python/local/pylookup...
Checking 4 files in /home/amos/.emacs.d/elpa/pyenv-mode-20170801.1648...
Checking 4 files in /home/amos/.emacs.d/elpa/py-isort-20160925.318...
Checking 4 files in /home/amos/.emacs.d/elpa/pug-mode-20170922.609...
Checking 4 files in /home/amos/.emacs.d/elpa/protobuf-mode-20170526.950...
Checking 4 files in /home/amos/.emacs.d/elpa/popwin-20150315.600...
Checking 4 files in /home/amos/.emacs.d/elpa/pip-requirements-20160930.2032...
Checking 4 files in /home/amos/.emacs.d/elpa/persp-mode-20170908.648...
Checking 4 files in /home/amos/.emacs.d/elpa/persistent-soft-20150224.253...
Checking 4 files in /home/amos/.emacs.d/elpa/list-utils-20160414.2202...
Checking 4 files in /home/amos/.emacs.d/elpa/pcache-20170106.614...
Checking 4 files in /home/amos/.emacs.d/elpa/persistent-scratch-20170110.546...
Checking 4 files in /home/amos/.emacs.d/elpa/pcre2el-20161120.1303...
Checking 4 files in /home/amos/.emacs.d/elpa/password-generator-20150222.1240...
Checking 14 files in /home/amos/.emacs.d/elpa/paradox-20161117.502...
Checking 4 files in /home/amos/.emacs.d/elpa/spinner-1.7.3...
Checking 4 files in /home/amos/.emacs.d/elpa/pangu-spacing-20170317.157...
Checking 4 files in /home/amos/.emacs.d/elpa/ox-twbs-20161103.1316...
Checking 6 files in /home/amos/.emacs.d/elpa/ox-hugo-20170927.1237...
Checking 4 files in /home/amos/.emacs.d/elpa/orgit-20170731.1003...
Checking 54 files in /home/amos/.emacs.d/elpa/org-ref-20170926.703...
Checking 32 files in /home/amos/.emacs.d/elpa/pdf-tools-20170918.934...
Checking 4 files in /home/amos/.emacs.d/elpa/key-chord-20160227.438...
Checking 8 files in /home/amos/.emacs.d/elpa/ivy-20170926.915...
Checking 4 files in /home/amos/.emacs.d/elpa/org-projectile-20170819.1047...
Checking 4 files in /home/amos/.emacs.d/elpa/org-category-capture-20170819.1047...
Checking 4 files in /home/amos/.emacs.d/elpa/org-present-20141109.1756...
Checking 6 files in /home/amos/.emacs.d/elpa/org-pomodoro-20161119.226...
Checking 4 files in /home/amos/.emacs.d/elpa/org-mime-20170914.2134...
Checking 4 files in /home/amos/.emacs.d/elpa/org-download-20170924.2309...
Checking 4 files in /home/amos/.emacs.d/elpa/org-bullets-20140918.1137...
Checking 4 files in /home/amos/.emacs.d/elpa/org-brain-20170914.734...
Checking 4 files in /home/amos/.emacs.d/elpa/org-autolist-20170924.1201...
Checking 4 files in /home/amos/.emacs.d/elpa/open-junk-file-20161210.314...
Checking 1 files in /home/amos/.emacs.d/layers/+themes/colors/local/nyan-mode...
Checking 1 files in /home/amos/.emacs.d/layers/+lang/python/local/nose...
Checking 4 files in /home/amos/.emacs.d/elpa/nginx-mode-20170611.2137...
Checking 4 files in /home/amos/.emacs.d/elpa/neotree-20170522.758...
Checking 4 files in /home/amos/.emacs.d/elpa/narrow-reindent-20150723.306...
Checking 4 files in /home/amos/.emacs.d/elpa/mwim-20161004.647...
Checking 4 files in /home/amos/.emacs.d/elpa/mu4e-maildirs-extension-20170217.40...
Checking 4 files in /home/amos/.emacs.d/elpa/mu4e-alert-20170901.1027...
Checking 4 files in /home/amos/.emacs.d/elpa/ht-20161015.1945...
Checking 4 files in /home/amos/.emacs.d/elpa/alert-20170824.1140...
Checking 4 files in /home/amos/.emacs.d/elpa/log4e-20170401.604...
Checking 4 files in /home/amos/.emacs.d/elpa/gntp-20141024.1950...
Checking 4 files in /home/amos/.emacs.d/elpa/move-text-20170908.2030...
Checking 36 files in /home/amos/.emacs.d/elpa/mmm-mode-20170808.1814...
Checking 4 files in /home/amos/.emacs.d/elpa/mediawiki-20170812.2255...
Checking 4 files in /home/amos/.emacs.d/elpa/markdown-toc-20170711.1249...
Checking 4 files in /home/amos/.emacs.d/elpa/markdown-mode-20170925.912...
Checking 4 files in /home/amos/.emacs.d/elpa/magit-gitflow-20170425.128...
Checking 6 files in /home/amos/.emacs.d/elpa/macrostep-20161120.1306...
Checking 4 files in /home/amos/.emacs.d/elpa/lorem-ipsum-20140911.1408...
Checking 4 files in /home/amos/.emacs.d/elpa/livid-mode-20131116.544...
Checking 4 files in /home/amos/.emacs.d/elpa/live-py-mode-20170926.2337...
Checking 4 files in /home/amos/.emacs.d/elpa/linum-relative-20160510.118...
Checking 4 files in /home/amos/.emacs.d/elpa/link-hint-20170923.855...
Checking 4 files in /home/amos/.emacs.d/elpa/less-css-mode-20160930.2153...
Checking 1 files in /home/amos/.emacs.d/private/ab-package/local/keys...
Checking 22 files in /home/amos/.emacs.d/elpa/js2-refactor-20170703.314...
Checking 20 files in /home/amos/.emacs.d/elpa/multiple-cursors-20170908.1452...
Checking 4 files in /home/amos/.emacs.d/elpa/js-doc-20160714.2134...
Checking 4 files in /home/amos/.emacs.d/elpa/insert-shebang-20170825.438...
Checking 4 files in /home/amos/.emacs.d/elpa/info+-20170923.1929...
Checking 4 files in /home/amos/.emacs.d/elpa/indent-guide-20170221.327...
Checking 4 files in /home/amos/.emacs.d/elpa/impatient-mode-20170505.1921...
Checking 1 files in /home/amos/.emacs.d/private/ab-package/local/i3...
Checking 6 files in /home/amos/.emacs.d/elpa/hy-mode-20170926.2334...
Checking 4 files in /home/amos/.emacs.d/elpa/hungry-delete-20170411.1802...
Checking 4 files in /home/amos/.emacs.d/elpa/htmlize-20161211.1019...
Checking 4 files in /home/amos/.emacs.d/elpa/hl-todo-20170621.1257...
Checking 4 files in /home/amos/.emacs.d/elpa/highlight-parentheses-20170809.1151...
Checking 4 files in /home/amos/.emacs.d/elpa/highlight-numbers-20170905.342...
Checking 4 files in /home/amos/.emacs.d/elpa/parent-mode-20150824.1600...
Checking 4 files in /home/amos/.emacs.d/elpa/highlight-indentation-20170502.43...
Checking 4 files in /home/amos/.emacs.d/elpa/hide-comnt-20170223.739...
Checking 4 files in /home/amos/.emacs.d/elpa/help-fns+-20170223.733...
Checking 4 files in /home/amos/.emacs.d/elpa/helm-themes-20160917.2245...
Checking 4 files in /home/amos/.emacs.d/elpa/helm-swoop-20170923.2127...
Checking 2 files in /home/amos/.emacs.d/layers/+completion/helm/local/helm-spacemacs-help...
Checking 4 files in /home/amos/.emacs.d/elpa/helm-pydoc-20160917.2242...
Checking 4 files in /home/amos/.emacs.d/elpa/helm-purpose-20170114.836...
Checking 20 files in /home/amos/.emacs.d/elpa/window-purpose-20170920.15...
Checking 4 files in /home/amos/.emacs.d/elpa/imenu-list-20170728.632...
Checking 4 files in /home/amos/.emacs.d/elpa/helm-projectile-20170926.1123...
Checking 4 files in /home/amos/.emacs.d/elpa/helm-mode-manager-20151124.138...
Checking 4 files in /home/amos/.emacs.d/elpa/helm-make-20170430.1053...
Checking 4 files in /home/amos/.emacs.d/elpa/projectile-20170917.410...
Checking 4 files in /home/amos/.emacs.d/elpa/helm-gtags-20170115.2129...
Checking 4 files in /home/amos/.emacs.d/elpa/helm-gitignore-20170210.1608...
Checking 4 files in /home/amos/.emacs.d/elpa/helm-flx-20170404.1230...
Checking 4 files in /home/amos/.emacs.d/elpa/helm-descbinds-20160916.713...
Checking 4 files in /home/amos/.emacs.d/elpa/helm-dash-20170913.345...
Checking 4 files in /home/amos/.emacs.d/elpa/helm-css-scss-20140626.1725...
Checking 4 files in /home/amos/.emacs.d/elpa/helm-company-20170608.1029...
Checking 4 files in /home/amos/.emacs.d/elpa/helm-c-yasnippet-20170128.742...
Checking 6 files in /home/amos/.emacs.d/elpa/helm-bibtex-20170922.627...
Checking 4 files in /home/amos/.emacs.d/elpa/parsebib-20170501.347...
Checking 4 files in /home/amos/.emacs.d/elpa/helm-ag-20170209.745...
Checking 4 files in /home/amos/.emacs.d/elpa/haml-mode-20170923.2153...
Checking 16 files in /home/amos/.emacs.d/elpa/google-translate-20170713.119...
Checking 4 files in /home/amos/.emacs.d/elpa/golden-ratio-20150819.420...
Checking 4 files in /home/amos/.emacs.d/elpa/godoctor-20161205.143...
Checking 4 files in /home/amos/.emacs.d/elpa/go-rename-20161117.331...
Checking 4 files in /home/amos/.emacs.d/elpa/go-guru-20170718.1046...
Checking 4 files in /home/amos/.emacs.d/elpa/go-eldoc-20170305.627...
Checking 8 files in /home/amos/.emacs.d/elpa/gnuplot-20141231.1337...
Checking 4 files in /home/amos/.emacs.d/elpa/gitignore-mode-20160319.302...
Checking 4 files in /home/amos/.emacs.d/elpa/gitconfig-mode-20170627.854...
Checking 4 files in /home/amos/.emacs.d/elpa/gitattributes-mode-20170118.1613...
Checking 4 files in /home/amos/.emacs.d/elpa/git-timemachine-20170325.220...
Checking 4 files in /home/amos/.emacs.d/elpa/git-messenger-20170101.2040...
Checking 4 files in /home/amos/.emacs.d/elpa/git-link-20170603.1026...
Checking 4 files in /home/amos/.emacs.d/elpa/gh-md-20151207.940...
Checking 4 files in /home/amos/.emacs.d/elpa/fuzzy-20150729.2037...
Checking 4 files in /home/amos/.emacs.d/elpa/fullframe-20170816.303...
Checking 4 files in /home/amos/.emacs.d/elpa/flycheck-rust-20170404.842...
Checking 4 files in /home/amos/.emacs.d/elpa/flycheck-pos-tip-20170504.1504...
Checking 4 files in /home/amos/.emacs.d/elpa/pos-tip-20150318.813...
Checking 4 files in /home/amos/.emacs.d/elpa/flycheck-bashate-20160629.2140...
Checking 7 files in /home/amos/.emacs.d/elpa/flycheck-20170911.127...
Checking 4 files in /home/amos/.emacs.d/elpa/pkg-info-20150517.443...
Checking 4 files in /home/amos/.emacs.d/elpa/epl-20150517.433...
Checking 4 files in /home/amos/.emacs.d/elpa/flx-ido-20151030.1112...
Checking 4 files in /home/amos/.emacs.d/elpa/flx-20151030.1112...
Checking 4 files in /home/amos/.emacs.d/elpa/fish-mode-20170430.623...
Checking 1 files in /home/amos/.emacs.d/private/ab-package/local/filladapt...
Checking 4 files in /home/amos/.emacs.d/elpa/fill-column-indicator-20170905.1008...
Checking 4 files in /home/amos/.emacs.d/elpa/fcitx-20170914.1000...
Checking 4 files in /home/amos/.emacs.d/elpa/fancy-battery-20150101.404...
Checking 4 files in /home/amos/.emacs.d/elpa/eyebrowse-20170318.1418...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-visualstar-20160222.1648...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-visual-mark-mode-20150202.1000...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-unimpaired-20170812.210552...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-tutor-20150102.2250...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-textobj-line-20150729.2322...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-terminal-cursor-changer-20170401.142...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-search-highlight-persist-20170522.2034...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-org-20170917.1447...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-numbers-20140606.551...
Checking 7 files in /home/amos/.emacs.d/elpa/evil-nerd-commenter-20170905.653...
Checking 26 files in /home/amos/.emacs.d/elpa/evil-mc-20170716.1806...
Checking 42 files in /home/amos/.emacs.d/elpa/evil-matchit-20170727.1741...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-magit-20170613.510...
Checking 70 files in /home/amos/.emacs.d/elpa/magit-20170927.107...
Checking 4 files in /home/amos/.emacs.d/elpa/git-commit-20170914.258...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-lisp-state-20160403.1948...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-lion-20170810.2314...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-indent-plus-20151109.1106...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-iedit-state-20160905.1908...
Checking 8 files in /home/amos/.emacs.d/elpa/iedit-20170916.1024...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-exchange-20170510.1959...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-embrace-20160519.1129...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-surround-20170910.1952...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-ediff-20170724.1223...
Checking 8 files in /home/amos/.emacs.d/elpa/evil-cleverparens-20170717.2113...
Checking 37 files in /home/amos/.emacs.d/elpa/smartparens-20170917.104...
Checking 4 files in /home/amos/.emacs.d/elpa/paredit-20170405.1149...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-args-20140329.1429...
Checking 4 files in /home/amos/.emacs.d/elpa/evil-anzu-20170123.2318...
Checking 4 files in /home/amos/.emacs.d/elpa/anzu-20161017.907...
Checking 4 files in /home/amos/.emacs.d/elpa/eval-sexp-fu-20131230.1351...
Checking 4 files in /home/amos/.emacs.d/elpa/highlight-20170702.732...
Checking 6 files in /home/amos/.emacs.d/elpa/esup-20170923.1328...
Checking 4 files in /home/amos/.emacs.d/elpa/emmet-mode-20161113.2158...
Checking 4 files in /home/amos/.emacs.d/elpa/embrace-20170615.1131...
Checking 56 files in /home/amos/.emacs.d/elpa/expand-region-20170514.1309...
Checking 4 files in /home/amos/.emacs.d/elpa/emamux-20170226.1937...
Checking 4 files in /home/amos/.emacs.d/elpa/elisp-slime-nav-20160128.1109...
Checking 107 files in /home/amos/.emacs.d/elpa/ein-20170922.1231...
Checking 16 files in /home/amos/.emacs.d/elpa/skewer-mode-20170730.1241...
Checking 8 files in /home/amos/.emacs.d/elpa/js2-mode-20170815.1415...
Checking 4 files in /home/amos/.emacs.d/elpa/simple-httpd-20170125.1910...
Checking 4 files in /home/amos/.emacs.d/elpa/request-deferred-20160419.1605...
Checking 4 files in /home/amos/.emacs.d/elpa/deferred-20170901.630...
Checking 4 files in /home/amos/.emacs.d/elpa/request-20170131.1747...
Checking 4 files in /home/amos/.emacs.d/elpa/websocket-20170829.457...
Checking 12 files in /home/amos/.emacs.d/elpa/editorconfig-20170919.1146...
Checking 4 files in /home/amos/.emacs.d/elpa/easy-hugo-20170925.1519...
Checking 4 files in /home/amos/.emacs.d/elpa/dumb-jump-20170918.2024...
Checking 4 files in /home/amos/.emacs.d/elpa/dockerfile-mode-20170418.1024...
Checking 18 files in /home/amos/.emacs.d/elpa/docker-20170718.303...
Checking 4 files in /home/amos/.emacs.d/elpa/json-mode-20170719.2205...
Checking 4 files in /home/amos/.emacs.d/elpa/json-snatcher-20150511.2047...
Checking 4 files in /home/amos/.emacs.d/elpa/json-reformat-20160212.53...
Checking 6 files in /home/amos/.emacs.d/elpa/tablist-20170219.1935...
Checking 4 files in /home/amos/.emacs.d/elpa/magit-popup-20170918.1116...
Checking 6 files in /home/amos/.emacs.d/elpa/docker-tramp-20170206.1925...
Checking 4 files in /home/amos/.emacs.d/elpa/disaster-20170507.1626...
Checking 4 files in /home/amos/.emacs.d/elpa/direnv-20170717.1049...
Checking 4 files in /home/amos/.emacs.d/elpa/with-editor-20170925.528...
Checking 4 files in /home/amos/.emacs.d/elpa/define-word-20150709.1223...
Checking 4 files in /home/amos/.emacs.d/elpa/dactyl-mode-20140906.1025...
Checking 4 files in /home/amos/.emacs.d/elpa/cython-mode-20170907.1648...
Checking 4 files in /home/amos/.emacs.d/elpa/csv-mode-1.6...
Checking 10 files in /home/amos/.emacs.d/elpa/company-web-20160502.658...
Checking 4 files in /home/amos/.emacs.d/elpa/web-completion-data-20160318.148...
Checking 4 files in /home/amos/.emacs.d/elpa/company-tern-20161004.1147...
Checking 4 files in /home/amos/.emacs.d/elpa/dash-functional-20160615.1351...
Checking 4 files in /home/amos/.emacs.d/elpa/tern-20170925.1333...
Checking 4 files in /home/amos/.emacs.d/elpa/company-statistics-20170210.1133...
Checking 4 files in /home/amos/.emacs.d/elpa/company-shell-20170517.2241...
Checking 4 files in /home/amos/.emacs.d/elpa/company-go-20170825.943...
Checking 4 files in /home/amos/.emacs.d/elpa/go-mode-20170726.555...
Checking 4 files in /home/amos/.emacs.d/elpa/company-c-headers-20170531.1330...
Checking 4 files in /home/amos/.emacs.d/elpa/company-auctex-20161025.24...
Checking 4 files in /home/amos/.emacs.d/elpa/company-anaconda-20160809.705...
Checking 50 files in /home/amos/.emacs.d/elpa/company-20170926.1515...
Checking 4 files in /home/amos/.emacs.d/elpa/command-log-mode-20151208.1552...
Checking 4 files in /home/amos/.emacs.d/elpa/column-enforce-mode-20170103.1231...
Checking 4 files in /home/amos/.emacs.d/elpa/color-identifiers-mode-20170814.1121...
Checking 4 files in /home/amos/.emacs.d/elpa/coffee-mode-20170324.240...
Checking 4 files in /home/amos/.emacs.d/elpa/cmake-mode-20160928.505...
Checking 4 files in /home/amos/.emacs.d/elpa/cmake-ide-20170922.231...
Checking 4 files in /home/amos/.emacs.d/elpa/levenshtein-20090830.340...
Checking 4 files in /home/amos/.emacs.d/elpa/clang-format-20170120.137...
Checking 1 files in /home/amos/.emacs.d/private/ab-package/local/centering-window-mode...
Checking 1 files in /home/amos/.emacs.d/layers/+spacemacs/spacemacs-navigation/local/centered-cursor...
Checking 1 files in /home/amos/.emacs.d/layers/+distributions/spacemacs-base/local/centered-buffer-mode...
Checking 6 files in /home/amos/.emacs.d/elpa/cargo-20170807.607...
Checking 4 files in /home/amos/.emacs.d/elpa/rust-mode-20170920.1919...
Checking 12 files in /home/amos/.emacs.d/elpa/blog-admin-20170923.2209...
Checking 6 files in /home/amos/.emacs.d/elpa/names-20151201.2004...
Checking 4 files in /home/amos/.emacs.d/elpa/ctable-20140305.859...
Checking 18 files in /home/amos/.emacs.d/elpa/biblio-20161014.1604...
Checking 4 files in /home/amos/.emacs.d/elpa/biblio-core-20160901.1115...
Checking 9 files in /home/amos/.emacs.d/elpa/seq-2.20...
Checking 4 files in /home/amos/.emacs.d/elpa/auto-yasnippet-20160925.225...
Checking 4 files in /home/amos/.emacs.d/elpa/yasnippet-20170923.1646...
Checking 4 files in /home/amos/.emacs.d/elpa/auto-compile-20170817.1437...
Checking 4 files in /home/amos/.emacs.d/elpa/packed-20170819.942...
Checking 4 files in /home/amos/.emacs.d/elpa/auctex-latexmk-20170618.936...
Checking 59 files in /home/amos/.emacs.d/elpa/auctex-11.91.0...
Ignoring redundant directory /home/amos/.emacs.d/elpa/auctex-11.91.0
Checking 4 files in /home/amos/.emacs.d/elpa/anaconda-mode-20170924.704...
Checking 4 files in /home/amos/.emacs.d/elpa/pythonic-20160221.1123...
Checking 4 files in /home/amos/.emacs.d/elpa/f-20170404.1039...
Checking 4 files in /home/amos/.emacs.d/elpa/s-20170922.900...
Checking 4 files in /home/amos/.emacs.d/elpa/dash-20170924.2240...
Checking 6 files in /home/amos/.emacs.d/elpa/all-the-icons-20170914.129...
Checking 4 files in /home/amos/.emacs.d/elpa/memoize-20170720.1802...
Checking 4 files in /home/amos/.emacs.d/elpa/font-lock+-20170222.1755...
Checking 4 files in /home/amos/.emacs.d/elpa/aggressive-indent-20170627.1223...
Checking 4 files in /home/amos/.emacs.d/elpa/adaptive-wrap-0.5.1...
Checking 4 files in /home/amos/.emacs.d/elpa/ace-window-20170801.1334...
Checking 4 files in /home/amos/.emacs.d/elpa/ace-link-20170925.723...
Checking 4 files in /home/amos/.emacs.d/elpa/ace-jump-helm-line-20160918.1136...
Checking 76 files in /home/amos/.emacs.d/elpa/helm-20170926.310...
Checking 10 files in /home/amos/.emacs.d/elpa/helm-core-20170923.616...
Checking 4 files in /home/amos/.emacs.d/elpa/avy-20170819.1039...
Checking 4 files in /home/amos/.emacs.d/elpa/ac-ispell-20151031.1926...
Checking 6 files in /home/amos/.emacs.d/elpa/auto-complete-20170124.1845...
Checking 4 files in /home/amos/.emacs.d/elpa/popup-20160709.729...
Checking 1 files in /home/amos/.emacs.d/private/ab-package/local/ab-osc52...
Checking 369 files in /home/amos/.emacs.d/elpa/org-plus-contrib-20170925...
Checking 1 files in /home/amos/.emacs.d/layers/+distributions/spacemacs-base/local/hybrid-mode...
Checking 1 files in /home/amos/.emacs.d/layers/+distributions/spacemacs-base/local/holy-mode...
Checking 1 files in /home/amos/.emacs.d/layers/+distributions/spacemacs-base/local/evil-evilified-state...
Checking 4 files in /home/amos/.emacs.d/elpa/which-key-20170817.1107...
Checking 4 files in /home/amos/.emacs.d/elpa/use-package-20170812.2256...
Checking 9 files in /home/amos/.emacs.d/elpa/hydra-20170924.2259...
Checking 34 files in /home/amos/.emacs.d/elpa/evil-20170904.1346...
Checking 4 files in /home/amos/.emacs.d/elpa/goto-chg-20170917.1200...
Checking 4 files in /home/amos/.emacs.d/elpa/undo-tree-20170706.246...
Checking 4 files in /home/amos/.emacs.d/elpa/diminish-20170419.1036...
Checking 4 files in /home/amos/.emacs.d/elpa/bind-map-20161207.711...
Checking 4 files in /home/amos/.emacs.d/elpa/bind-key-20161218.1520...
Checking 10 files in /home/amos/.emacs.d/elpa/async-20170916.2256...
Checking 40 files in ~/share/emacs/site-lisp/mu4e...
Checking 3 files in /home/amos/.emacs.d/core/libs/spacemacs-theme...
Checking 6 files in /home/amos/.emacs.d/core/libs...
Checking 21 files in /home/amos/.emacs.d/core...
Checking 1 files in /usr/local/share/emacs/25.3/site-lisp...
Checking 1 files in /usr/local/share/emacs/site-lisp...
Checking 40 files in /usr/local/share/emacs/site-lisp/mu4e...
Checking 504 files in /usr/local/share/emacs/25.3/lisp...
Checking 82 files in /usr/local/share/emacs/25.3/lisp/vc...
Checking 66 files in /usr/local/share/emacs/25.3/lisp/url...
Checking 88 files in /usr/local/share/emacs/25.3/lisp/textmodes...
Checking 174 files in /usr/local/share/emacs/25.3/lisp/progmodes...
Checking 50 files in /usr/local/share/emacs/25.3/lisp/play...
Checking 209 files in /usr/local/share/emacs/25.3/lisp/org...
Checking 48 files in /usr/local/share/emacs/25.3/lisp/nxml...
Checking 131 files in /usr/local/share/emacs/25.3/lisp/net...
Checking 48 files in /usr/local/share/emacs/25.3/lisp/mh-e...
Checking 67 files in /usr/local/share/emacs/25.3/lisp/mail...
Checking 1 files in /usr/local/share/emacs/25.3/lisp/leim...
Checking 76 files in /usr/local/share/emacs/25.3/lisp/language...
Checking 70 files in /usr/local/share/emacs/25.3/lisp/international...
Checking 259 files in /usr/local/share/emacs/25.3/lisp/gnus...
Checking 57 files in /usr/local/share/emacs/25.3/lisp/eshell...
Checking 70 files in /usr/local/share/emacs/25.3/lisp/erc...
Checking 34 files in /usr/local/share/emacs/25.3/lisp/emulation...
Checking 167 files in /usr/local/share/emacs/25.3/lisp/emacs-lisp...
Checking 24 files in /usr/local/share/emacs/25.3/lisp/cedet...
Checking 57 files in /usr/local/share/emacs/25.3/lisp/calendar...
Checking 87 files in /usr/local/share/emacs/25.3/lisp/calc...
Checking 120 files in /usr/local/share/emacs/25.3/lisp/obsolete...
[yas] Prepared just-in-time loading of snippets successfully.
Created doi link.
Created gls link.
Created glspl link.
Created Gls link.
Created Glspl link.
Created glslink link.
Created glssymbol link.
Created glsdesc link.
Created acrshort link.
Created acrlong link.
Created acrfull link.
Created ac link.
Created Ac link.
Created acp link.
Created Acp link.
Created bibliography link.
Created nobibliography link.
Created printbibliography link.
Created bibliographystyle link.
Created addbibresource link.
Created list-of-figures link.
Created list-of-tables link.
Created label link.
Created ref link.
Created pageref link.
Created nameref link.
Created eqref link.
Created autoref link.
Created cref link.
Created Cref link.
Created index link.
Created printindex link.
Truncate long lines enabled
Loading /home/amos/.emacs.d/.cache/company-statistics-cache.el (source)...done
* Debug information for =ox-hugo=
** Emacs Version
#+BEGIN_EXAMPLE
GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
 of 2017-09-21
#+END_EXAMPLE
** Org Version
#+BEGIN_EXAMPLE
Org mode version 9.1.1 (9.1.1-6-gd40deb-elpaplus @ /home/amos/.emacs.d/elpa/org-plus-contrib-20170925/)
#+END_EXAMPLE
*** Org =load-path= shadows
*Warning*: Possible mixed installation of Org
#+BEGIN_EXAMPLE
~/share/emacs/site-lisp/mu4e/org-old-mu4e hides /usr/local/share/emacs/site-lisp/mu4e/org-old-mu4e
~/share/emacs/site-lisp/mu4e/org-mu4e hides /usr/local/share/emacs/site-lisp/mu4e/org-mu4e
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-matlab hides /usr/local/share/emacs/25.3/lisp/org/ob-matlab
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-compat hides /usr/local/share/emacs/25.3/lisp/org/org-compat
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-html hides /usr/local/share/emacs/25.3/lisp/org/ox-html
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-maxima hides /usr/local/share/emacs/25.3/lisp/org/ob-maxima
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-screen hides /usr/local/share/emacs/25.3/lisp/org/ob-screen
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-datetree hides /usr/local/share/emacs/25.3/lisp/org/org-datetree
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-texinfo hides /usr/local/share/emacs/25.3/lisp/org/ox-texinfo
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-src hides /usr/local/share/emacs/25.3/lisp/org/org-src
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-man hides /usr/local/share/emacs/25.3/lisp/org/ox-man
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-asymptote hides /usr/local/share/emacs/25.3/lisp/org/ob-asymptote
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-element hides /usr/local/share/emacs/25.3/lisp/org/org-element
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-ref hides /usr/local/share/emacs/25.3/lisp/org/ob-ref
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-emacs-lisp hides /usr/local/share/emacs/25.3/lisp/org/ob-emacs-lisp
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-attach hides /usr/local/share/emacs/25.3/lisp/org/org-attach
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-bibtex hides /usr/local/share/emacs/25.3/lisp/org/org-bibtex
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-haskell hides /usr/local/share/emacs/25.3/lisp/org/ob-haskell
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-R hides /usr/local/share/emacs/25.3/lisp/org/ob-R
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-macro hides /usr/local/share/emacs/25.3/lisp/org/org-macro
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-ascii hides /usr/local/share/emacs/25.3/lisp/org/ox-ascii
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-agenda hides /usr/local/share/emacs/25.3/lisp/org/org-agenda
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-icalendar hides /usr/local/share/emacs/25.3/lisp/org/ox-icalendar
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-perl hides /usr/local/share/emacs/25.3/lisp/org/ob-perl
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-tangle hides /usr/local/share/emacs/25.3/lisp/org/ob-tangle
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-sqlite hides /usr/local/share/emacs/25.3/lisp/org/ob-sqlite
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-awk hides /usr/local/share/emacs/25.3/lisp/org/ob-awk
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-faces hides /usr/local/share/emacs/25.3/lisp/org/org-faces
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-w3m hides /usr/local/share/emacs/25.3/lisp/org/org-w3m
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-info hides /usr/local/share/emacs/25.3/lisp/org/org-info
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-beamer hides /usr/local/share/emacs/25.3/lisp/org/ox-beamer
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-version hides /usr/local/share/emacs/25.3/lisp/org/org-version
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-colview hides /usr/local/share/emacs/25.3/lisp/org/org-colview
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-calc hides /usr/local/share/emacs/25.3/lisp/org/ob-calc
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-macs hides /usr/local/share/emacs/25.3/lisp/org/org-macs
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-gnus hides /usr/local/share/emacs/25.3/lisp/org/org-gnus
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-docview hides /usr/local/share/emacs/25.3/lisp/org/org-docview
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-archive hides /usr/local/share/emacs/25.3/lisp/org/org-archive
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-ocaml hides /usr/local/share/emacs/25.3/lisp/org/ob-ocaml
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-C hides /usr/local/share/emacs/25.3/lisp/org/ob-C
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org hides /usr/local/share/emacs/25.3/lisp/org/org
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-publish hides /usr/local/share/emacs/25.3/lisp/org/ox-publish
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-table hides /usr/local/share/emacs/25.3/lisp/org/ob-table
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-timer hides /usr/local/share/emacs/25.3/lisp/org/org-timer
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-org hides /usr/local/share/emacs/25.3/lisp/org/ob-org
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-org hides /usr/local/share/emacs/25.3/lisp/org/ox-org
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-pcomplete hides /usr/local/share/emacs/25.3/lisp/org/org-pcomplete
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-ruby hides /usr/local/share/emacs/25.3/lisp/org/ob-ruby
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-plot hides /usr/local/share/emacs/25.3/lisp/org/org-plot
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-exp hides /usr/local/share/emacs/25.3/lisp/org/ob-exp
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-keys hides /usr/local/share/emacs/25.3/lisp/org/ob-keys
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-mscgen hides /usr/local/share/emacs/25.3/lisp/org/ob-mscgen
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-makefile hides /usr/local/share/emacs/25.3/lisp/org/ob-makefile
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-mouse hides /usr/local/share/emacs/25.3/lisp/org/org-mouse
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-shen hides /usr/local/share/emacs/25.3/lisp/org/ob-shen
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-mhe hides /usr/local/share/emacs/25.3/lisp/org/org-mhe
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-footnote hides /usr/local/share/emacs/25.3/lisp/org/org-footnote
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-irc hides /usr/local/share/emacs/25.3/lisp/org/org-irc
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-bbdb hides /usr/local/share/emacs/25.3/lisp/org/org-bbdb
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-habit hides /usr/local/share/emacs/25.3/lisp/org/org-habit
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-lilypond hides /usr/local/share/emacs/25.3/lisp/org/ob-lilypond
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob hides /usr/local/share/emacs/25.3/lisp/org/ob
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-sass hides /usr/local/share/emacs/25.3/lisp/org/ob-sass
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-capture hides /usr/local/share/emacs/25.3/lisp/org/org-capture
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-eshell hides /usr/local/share/emacs/25.3/lisp/org/org-eshell
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-sql hides /usr/local/share/emacs/25.3/lisp/org/ob-sql
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-entities hides /usr/local/share/emacs/25.3/lisp/org/org-entities
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-picolisp hides /usr/local/share/emacs/25.3/lisp/org/ob-picolisp
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-indent hides /usr/local/share/emacs/25.3/lisp/org/org-indent
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-odt hides /usr/local/share/emacs/25.3/lisp/org/ox-odt
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-io hides /usr/local/share/emacs/25.3/lisp/org/ob-io
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-rmail hides /usr/local/share/emacs/25.3/lisp/org/org-rmail
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-protocol hides /usr/local/share/emacs/25.3/lisp/org/org-protocol
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-octave hides /usr/local/share/emacs/25.3/lisp/org/ob-octave
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-gnuplot hides /usr/local/share/emacs/25.3/lisp/org/ob-gnuplot
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-table hides /usr/local/share/emacs/25.3/lisp/org/org-table
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-fortran hides /usr/local/share/emacs/25.3/lisp/org/ob-fortran
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-plantuml hides /usr/local/share/emacs/25.3/lisp/org/ob-plantuml
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-core hides /usr/local/share/emacs/25.3/lisp/org/ob-core
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-feed hides /usr/local/share/emacs/25.3/lisp/org/org-feed
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-eval hides /usr/local/share/emacs/25.3/lisp/org/ob-eval
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-ctags hides /usr/local/share/emacs/25.3/lisp/org/org-ctags
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-java hides /usr/local/share/emacs/25.3/lisp/org/ob-java
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-ditaa hides /usr/local/share/emacs/25.3/lisp/org/ob-ditaa
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-id hides /usr/local/share/emacs/25.3/lisp/org/org-id
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-list hides /usr/local/share/emacs/25.3/lisp/org/org-list
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-latex hides /usr/local/share/emacs/25.3/lisp/org/ox-latex
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-js hides /usr/local/share/emacs/25.3/lisp/org/ob-js
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-lisp hides /usr/local/share/emacs/25.3/lisp/org/ob-lisp
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-lob hides /usr/local/share/emacs/25.3/lisp/org/ob-lob
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-clock hides /usr/local/share/emacs/25.3/lisp/org/org-clock
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox hides /usr/local/share/emacs/25.3/lisp/org/ox
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-clojure hides /usr/local/share/emacs/25.3/lisp/org/ob-clojure
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-comint hides /usr/local/share/emacs/25.3/lisp/org/ob-comint
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-install hides /usr/local/share/emacs/25.3/lisp/org/org-install
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-inlinetask hides /usr/local/share/emacs/25.3/lisp/org/org-inlinetask
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-latex hides /usr/local/share/emacs/25.3/lisp/org/ob-latex
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-crypt hides /usr/local/share/emacs/25.3/lisp/org/org-crypt
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-md hides /usr/local/share/emacs/25.3/lisp/org/ox-md
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-dot hides /usr/local/share/emacs/25.3/lisp/org/ob-dot
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-scheme hides /usr/local/share/emacs/25.3/lisp/org/ob-scheme
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-mobile hides /usr/local/share/emacs/25.3/lisp/org/org-mobile
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-python hides /usr/local/share/emacs/25.3/lisp/org/ob-python
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-ledger hides /usr/local/share/emacs/25.3/lisp/org/ob-ledger
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-css hides /usr/local/share/emacs/25.3/lisp/org/ob-css
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-loaddefs hides /usr/local/share/emacs/25.3/lisp/org/org-loaddefs
#+END_EXAMPLE
Study the output of =M-x list-load-path-shadows=.
** Hugo Version
Hugo Static Site Generator v0.27.1 linux/amd64 BuildDate: 2017-09-13T18:29:44+02:00
** =ox-hugo= defcustoms
|org-hugo-default-section-directory                    |"post"|
|org-hugo-use-code-for-kbd                             |nil|
|org-hugo-preserve-filling                             |t|
|org-hugo-delete-trailing-ws                           |t|
|org-hugo-prefer-hyphen-in-tags                        |t|
|org-hugo-allow-spaces-in-tags                         |t|
|org-hugo-langs-no-descr-in-code-fences                |nil|
|org-hugo-auto-set-lastmod                             |nil|
|org-hugo-front-matter-format                          |"toml"|
|org-hugo-default-static-subdirectory-for-externals    |"ox-hugo"|
|org-hugo-external-file-extensions-allowed-for-copying |("jpg" "jpeg" "tiff" "png" "svg" "pdf" "odt")|
|org-hugo-front-matter-format                          |"toml"|
Loading /home/amos/.emacs.d/.cache/recentf...done

and (require 'ox-hugo) doesn't work either.

@kaushalmodi
Copy link
Owner

Hmm, that looks alright (though, did you manually copy stuff from your Messages buffer? If so, you were not supposed to do that.) You had to just M-x org-hugo-debug-info and paste here directly. If that's what you did, then something is different about your org setup.

  • make test works so that means that the package can run on your machine.
  • now need to figure out how spacemacs messes with this setup.

@amosbird
Copy link
Author

Oh, ok. I'm not aware it copies to the clipboard :). Yeah, I think something is broken in spacemacs. ox-twbs doesn't appear in the org dispatch menu either.

Debug information for ox-hugo

Emacs Version

GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
 of 2017-09-21

Org Version

Org mode version 9.1.1 (9.1.1-6-gd40deb-elpaplus @ /home/amos/.emacs.d/elpa/org-plus-contrib-20170925/)

Org load-path shadows

Warning: Possible mixed installation of Org

/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-matlab hides /usr/local/share/emacs/25.3/lisp/org/ob-matlab
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-compat hides /usr/local/share/emacs/25.3/lisp/org/org-compat
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-html hides /usr/local/share/emacs/25.3/lisp/org/ox-html
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-maxima hides /usr/local/share/emacs/25.3/lisp/org/ob-maxima
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-screen hides /usr/local/share/emacs/25.3/lisp/org/ob-screen
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-datetree hides /usr/local/share/emacs/25.3/lisp/org/org-datetree
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-texinfo hides /usr/local/share/emacs/25.3/lisp/org/ox-texinfo
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-src hides /usr/local/share/emacs/25.3/lisp/org/org-src
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-man hides /usr/local/share/emacs/25.3/lisp/org/ox-man
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-asymptote hides /usr/local/share/emacs/25.3/lisp/org/ob-asymptote
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-element hides /usr/local/share/emacs/25.3/lisp/org/org-element
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-ref hides /usr/local/share/emacs/25.3/lisp/org/ob-ref
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-emacs-lisp hides /usr/local/share/emacs/25.3/lisp/org/ob-emacs-lisp
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-attach hides /usr/local/share/emacs/25.3/lisp/org/org-attach
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-bibtex hides /usr/local/share/emacs/25.3/lisp/org/org-bibtex
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-haskell hides /usr/local/share/emacs/25.3/lisp/org/ob-haskell
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-R hides /usr/local/share/emacs/25.3/lisp/org/ob-R
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-macro hides /usr/local/share/emacs/25.3/lisp/org/org-macro
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-ascii hides /usr/local/share/emacs/25.3/lisp/org/ox-ascii
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-agenda hides /usr/local/share/emacs/25.3/lisp/org/org-agenda
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-icalendar hides /usr/local/share/emacs/25.3/lisp/org/ox-icalendar
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-perl hides /usr/local/share/emacs/25.3/lisp/org/ob-perl
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-tangle hides /usr/local/share/emacs/25.3/lisp/org/ob-tangle
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-sqlite hides /usr/local/share/emacs/25.3/lisp/org/ob-sqlite
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-awk hides /usr/local/share/emacs/25.3/lisp/org/ob-awk
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-faces hides /usr/local/share/emacs/25.3/lisp/org/org-faces
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-w3m hides /usr/local/share/emacs/25.3/lisp/org/org-w3m
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-info hides /usr/local/share/emacs/25.3/lisp/org/org-info
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-beamer hides /usr/local/share/emacs/25.3/lisp/org/ox-beamer
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-version hides /usr/local/share/emacs/25.3/lisp/org/org-version
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-colview hides /usr/local/share/emacs/25.3/lisp/org/org-colview
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-calc hides /usr/local/share/emacs/25.3/lisp/org/ob-calc
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-macs hides /usr/local/share/emacs/25.3/lisp/org/org-macs
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-gnus hides /usr/local/share/emacs/25.3/lisp/org/org-gnus
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-docview hides /usr/local/share/emacs/25.3/lisp/org/org-docview
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-archive hides /usr/local/share/emacs/25.3/lisp/org/org-archive
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-ocaml hides /usr/local/share/emacs/25.3/lisp/org/ob-ocaml
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-C hides /usr/local/share/emacs/25.3/lisp/org/ob-C
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org hides /usr/local/share/emacs/25.3/lisp/org/org
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-publish hides /usr/local/share/emacs/25.3/lisp/org/ox-publish
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-table hides /usr/local/share/emacs/25.3/lisp/org/ob-table
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-timer hides /usr/local/share/emacs/25.3/lisp/org/org-timer
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-org hides /usr/local/share/emacs/25.3/lisp/org/ob-org
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-org hides /usr/local/share/emacs/25.3/lisp/org/ox-org
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-pcomplete hides /usr/local/share/emacs/25.3/lisp/org/org-pcomplete
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-ruby hides /usr/local/share/emacs/25.3/lisp/org/ob-ruby
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-plot hides /usr/local/share/emacs/25.3/lisp/org/org-plot
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-exp hides /usr/local/share/emacs/25.3/lisp/org/ob-exp
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-keys hides /usr/local/share/emacs/25.3/lisp/org/ob-keys
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-mscgen hides /usr/local/share/emacs/25.3/lisp/org/ob-mscgen
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-makefile hides /usr/local/share/emacs/25.3/lisp/org/ob-makefile
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-mouse hides /usr/local/share/emacs/25.3/lisp/org/org-mouse
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-shen hides /usr/local/share/emacs/25.3/lisp/org/ob-shen
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-mhe hides /usr/local/share/emacs/25.3/lisp/org/org-mhe
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-footnote hides /usr/local/share/emacs/25.3/lisp/org/org-footnote
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-irc hides /usr/local/share/emacs/25.3/lisp/org/org-irc
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-bbdb hides /usr/local/share/emacs/25.3/lisp/org/org-bbdb
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-habit hides /usr/local/share/emacs/25.3/lisp/org/org-habit
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-lilypond hides /usr/local/share/emacs/25.3/lisp/org/ob-lilypond
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob hides /usr/local/share/emacs/25.3/lisp/org/ob
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-sass hides /usr/local/share/emacs/25.3/lisp/org/ob-sass
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-capture hides /usr/local/share/emacs/25.3/lisp/org/org-capture
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-eshell hides /usr/local/share/emacs/25.3/lisp/org/org-eshell
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-sql hides /usr/local/share/emacs/25.3/lisp/org/ob-sql
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-entities hides /usr/local/share/emacs/25.3/lisp/org/org-entities
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-picolisp hides /usr/local/share/emacs/25.3/lisp/org/ob-picolisp
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-indent hides /usr/local/share/emacs/25.3/lisp/org/org-indent
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-odt hides /usr/local/share/emacs/25.3/lisp/org/ox-odt
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-io hides /usr/local/share/emacs/25.3/lisp/org/ob-io
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-rmail hides /usr/local/share/emacs/25.3/lisp/org/org-rmail
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-protocol hides /usr/local/share/emacs/25.3/lisp/org/org-protocol
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-octave hides /usr/local/share/emacs/25.3/lisp/org/ob-octave
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-gnuplot hides /usr/local/share/emacs/25.3/lisp/org/ob-gnuplot
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-table hides /usr/local/share/emacs/25.3/lisp/org/org-table
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-fortran hides /usr/local/share/emacs/25.3/lisp/org/ob-fortran
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-plantuml hides /usr/local/share/emacs/25.3/lisp/org/ob-plantuml
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-core hides /usr/local/share/emacs/25.3/lisp/org/ob-core
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-feed hides /usr/local/share/emacs/25.3/lisp/org/org-feed
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-eval hides /usr/local/share/emacs/25.3/lisp/org/ob-eval
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-ctags hides /usr/local/share/emacs/25.3/lisp/org/org-ctags
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-java hides /usr/local/share/emacs/25.3/lisp/org/ob-java
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-ditaa hides /usr/local/share/emacs/25.3/lisp/org/ob-ditaa
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-id hides /usr/local/share/emacs/25.3/lisp/org/org-id
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-list hides /usr/local/share/emacs/25.3/lisp/org/org-list
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-latex hides /usr/local/share/emacs/25.3/lisp/org/ox-latex
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-js hides /usr/local/share/emacs/25.3/lisp/org/ob-js
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-lisp hides /usr/local/share/emacs/25.3/lisp/org/ob-lisp
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-lob hides /usr/local/share/emacs/25.3/lisp/org/ob-lob
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-clock hides /usr/local/share/emacs/25.3/lisp/org/org-clock
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox hides /usr/local/share/emacs/25.3/lisp/org/ox
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-clojure hides /usr/local/share/emacs/25.3/lisp/org/ob-clojure
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-comint hides /usr/local/share/emacs/25.3/lisp/org/ob-comint
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-install hides /usr/local/share/emacs/25.3/lisp/org/org-install
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-inlinetask hides /usr/local/share/emacs/25.3/lisp/org/org-inlinetask
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-latex hides /usr/local/share/emacs/25.3/lisp/org/ob-latex
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-crypt hides /usr/local/share/emacs/25.3/lisp/org/org-crypt
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ox-md hides /usr/local/share/emacs/25.3/lisp/org/ox-md
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-dot hides /usr/local/share/emacs/25.3/lisp/org/ob-dot
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-scheme hides /usr/local/share/emacs/25.3/lisp/org/ob-scheme
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-mobile hides /usr/local/share/emacs/25.3/lisp/org/org-mobile
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-python hides /usr/local/share/emacs/25.3/lisp/org/ob-python
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-ledger hides /usr/local/share/emacs/25.3/lisp/org/ob-ledger
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/ob-css hides /usr/local/share/emacs/25.3/lisp/org/ob-css
/home/amos/.emacs.d/elpa/org-plus-contrib-20170925/org-loaddefs hides /usr/local/share/emacs/25.3/lisp/org/org-loaddefs

Study the output of M-x list-load-path-shadows.

Hugo Version

Hugo Static Site Generator v0.27.1 linux/amd64 BuildDate: 2017-09-13T18:29:44+02:00

ox-hugo defcustoms

org-hugo-default-section-directory "post"
org-hugo-use-code-for-kbd nil
org-hugo-preserve-filling t
org-hugo-delete-trailing-ws t
org-hugo-prefer-hyphen-in-tags t
org-hugo-allow-spaces-in-tags t
org-hugo-langs-no-descr-in-code-fences nil
org-hugo-auto-set-lastmod nil
org-hugo-front-matter-format "toml"
org-hugo-default-static-subdirectory-for-externals "ox-hugo"
org-hugo-external-file-extensions-allowed-for-copying ("jpg" "jpeg" "tiff" "png" "svg" "pdf" "odt")
org-hugo-front-matter-format "toml"

@kaushalmodi
Copy link
Owner

Doesn't that look better? :)

I don't use Spacemacs. But looks like this is related: syl20bnr/spacemacs#6878

Do you want to try getting this to work for you, and report back? I can add it to the documentation for Spacemacs users.

@amosbird
Copy link
Author

Yeah, it looks great!

I'm trying to get it working. after I manually eval the org-export-define-derived-backend in ox-blackfriday and ox-hugo, it works. I don't know why these functions aren't evaluated on package loading.

@kaushalmodi
Copy link
Owner

I am now at my computer.. so can provide better help.

  • C-c C-e H H is bound by default to org-hugo-export-subtree-to-md.
  • C-c C-e H A is bound by default to effectively (lambda () (interactive) (org-hugo-export-subtree-to-md :all-subtrees)).
  • C-c C-e H h is bound by default to org-hugo-export-to-md.

So even if the bindings do not show up in the exporter menu, you should be able to run above after doing (require 'ox-hugo).

(Sorry about earlier suggesting not to use M-x org-hugo-export-to-md; turns out that's what's called on doing C-c C-e H h.)

So I exported this test case:

#+HUGO_BASE_DIR: /home/kmodi/sandbox/org/
#+HUGO_SECTION: ./
#+HUGO_WEIGHT: auto
#+HUGO_AUTO_SET_LASTMOD: t

* KV

** WhiteDB

   test

using M-x org-hugo-export-to-md, and it worked fine.. exported to:

+++
lastmod = 2017-09-28T09:44:06-04:00
weight = "auto"
draft = false
+++

## KV {#kv}


### WhiteDB {#whitedb}

test

You should not need to manually eval org-export-define-derived-backend in ox-blackfriday ..

@kaushalmodi
Copy link
Owner

kaushalmodi commented Sep 28, 2017

Unrelated.. but I need to stop weight = "auto" from showing up in the Markdown file if doing a file export instead of subtree export.. the auto-weight feature works only for subtree exports. #83


Update: Fixed in c772891

@kaushalmodi
Copy link
Owner

So coming back to your issue at hand, I am not able to recreate this error:

user-error: It is mandatory to set the HUGO_BASE_DIR property

@amosbird
Copy link
Author

That's weird. TBH I don't know when would emacs eval org-export-define-derived-backend. If there is an autoload function defined in the package file, will (require 'ox-huge) trigger org-export-define-derived-backend ? Or do I need to invoke one autoload command in order to start the real loading process?

@kaushalmodi
Copy link
Owner

will (require 'ox-huge) trigger org-export-define-derived-backend ?

yes

So try this from scratch (restart emacs if needed), and then:

  • Open your example file
  • M-x org-hugo-export-to-md

Calling org-hugo-export-to-md should autoload ox-hugo (so you should not need to require it manually).

Well, if that didn't work then may be spacemacs changes how package-initialize should have worked. In that case, explicitly do (require 'ox-hugo) and then try M-x org-hugo-export-to-md.

@amosbird
Copy link
Author

Even after I did (require 'ox-hugo), M-x org-hugo-export-to-md still doesn't work and ox-hugo doesn't apppear in the dispatch menu.

@kaushalmodi
Copy link
Owner

I am now on gitter: https://gitter.im/KaushalModi/Lobby We can continue discussion there if you like.

@amosbird
Copy link
Author

It only works if I manually eval those org-export-define-derived-backend

@kaushalmodi kaushalmodi changed the title Where should I specify HUGO_BASE_DIR? Issue with having ox-hugo installed on Spacemacs Sep 28, 2017
@kaushalmodi
Copy link
Owner

@amosbird I have submitted this PR syl20bnr/spacemacs#9705 on Spacemacs.

Spacemacs makes things too complicated!

The complicated spacemacs|use-package-add-hook macro did not work, but this worked right away as I mention in the Usage section in docs.

@kaushalmodi
Copy link
Owner

kaushalmodi commented Oct 9, 2017

@amosbird I was able to get C-c C-e show ox-hugo commands even by just adding:

(use-package ox-hugo
  :ensure t                             ;Auto-install the package from Melpa
  :after ox)

to dotspacemacs/user-config function in .spacemacs.

Verified to work on Spacemacs develop branch with spacemacs-base distribution, emacs editing style

See https://ox-hugo.scripter.co/doc/usage/ (now updated with that).


Update: Also add ox-hugo to dotspacemacs-additional-packages in .spacemacs.

@amosbird
Copy link
Author

amosbird commented Oct 9, 2017

Hi, @kaushalmodi . Thank you for doing this. I'll try to figure out why it doesn't work in my local setup :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants