
Emacs major mode for managing hugo
easy-hugo is an Emacs major mode designed for writing Hugo-powered blogs using various markup formats such as Markdown, Org-mode, AsciiDoc, reStructuredText, mmark, and HTML. It enhances the blogging experience within Emacs, making it easier to manage and create content. The mode provides features like switching between multiple blogs, generating different file formats based on user input, previewing articles, and publishing to different deployment destinations.
< or > key.p with easy-hugo-mode. The browser opens automatically and displays a preview of the article on the pointer.easy-hugo-server-flags command can be set to -D in order to preview drafts.init.el file.counsel-ag or helm-ag.To install easy-hugo, you can follow these steps:
(use-package easy-hugo
  :ensure t
  :config
  (setq easy-hugo-basedir "~/path/to/your/hugo/blog/")
  (setq easy-hugo-url "your-blog-url")
  (setq easy-hugo-sshdomain "your-blog-ssh-domain")
  (setq easy-hugo-root "/your/root/path")
  (setq easy-hugo-previewtime "300")
  (setq easy-hugo-postdir "content/post")
  (setq easy-hugo-readonly nil) ; This will make the files writable
  )
easy-hugo is an Emacs major mode that simplifies the process of writing and managing Hugo-powered blogs within Emacs. It supports multiple markup formats, provides features like blog creation, previewing, and publishing, and integrates seamlessly with different deployment destinations. With easy-hugo, bloggers can enjoy a streamlined workflow and an improved writing experience.