I recently moved my website from wordpress to hugo. It is taking a little getting used to, but I absolutely love the fact that I don't have to leave my editor to update my blog. I was still editing markdown and had to lookup markdown syntax here and there. So today I spent some time to figure out how to get the ball rolling with org-mode in emacs. Turns out, its not that hard at all.
easy-hugo
I use emacs-doom as my environment without the evil-mode
enabled. I was looking around for plugins to integrate doom with hugo. After some search, I figured the list in hugo website is quite good to start. I picked the easy-hugo option from the list and installed it in my doom environment, packages.el
file as
(package! easy-hugo)
Then I configured the following variables in my config.el
file.
(setq easy-hugo-basedir "~/Documents/website/abishekgoda/")
(setq easy-hugo-postdir "content/posts")
(setq easy-hugo-default-ext ".org")
(setq easy-hugo-org-header t)
Once done, run doom sync
and restart emacs. With this I am able to open my easy-hugo dashboard and start creating posts. I created this post from within that environment :smile: