Write blog in emacs with hexo or org-page.
git clone https://github.com/CodeFalling/blog-admin /path/to/blog-admin -b master
(add-to-load-path "/path/to/blog-admin")
(require 'blog-admin)
- You may have to install s f ctable as depends
blog-admin
or install from github(not melpa)
(blog-admin :location (recipe
:fetcher github
:repo "codefalling/blog-admin"))
in your layer’s packages, then
(use-package blog-admin
:init
(progn
;; do your configuration here
))
(require 'blog-admin)
firstM-x blog-admin-start
to start this.d
to delete current postw
to write new posts
to switch between draft and categories
(add-hook 'blog-admin-backend-after-new-post-hook 'find-file)
Both orgmode
or markdown
works well.You can even use them at the same time.But this plugin do nothing about render.If you want to make orgmode work with hexo,you’d better use hexo-renderer-org.
(setq blog-admin-backend-path "~/blog")
(setq blog-admin-backend-type 'hexo)
(setq blog-admin-backend-new-post-in-drafts t) ;; create new post in drafts by default
(setq blog-admin-backend-new-post-with-same-name-dir t) ;; create same-name directory with new post
org-page is pure emacs static blog generator.
(setq blog-admin-backend-type 'org-page)
(setq blog-admin-backend-path "~/code/blog")
(setq blog-admin-backend-new-post-in-drafts t)
(setq blog-admin-backend-new-post-with-same-name-dir t)
(setq blog-admin-backend-org-page-drafts "_drafts") ;; directory to save draft
- I stole idea that operating posts in table from org-octopress.
- The table build on a awesome library: emacs-ctable.
- Thanks for s and f who provide a modern API for emacs.