Emacs for blogging: write post in org-mode, everything goes well
Hexo and Jekyll are good, but…
I write about programming, technology, and other topics.
10 years ago, I started blogging with WordPress and then transferred to Jekyll several years later, then continually moved to Hexo.
Jekyll and Hexo are fascinating tools for programmers to generate content files into the HTML page. We only need to publish generated results onto a server.
The generated pages are minimized and super fast. We can use Git or any other version control tools to manage posts.
In one word, with these tools we can blog like coding, it’s the style of programmers.
Blogging with Emacs and Wordpress
I begin this new blog recently, for practicing another style of writing: writing for others.
However, I realized recently, WordPress is still a good choice for technical blogging.
Wordpress is the most popular tools for building a site, it’s more than 20 years old and with many existing good plugins.
Org2Blog is amazing
I have used org-mode for about 2 years. I won’t change to write on the dashboard of Wordpress. Org2Blog is the reason I want to use Emacs for blogging. The experience of writing in org-mode is amazing.
The whole workflow is:
org-captureto create a new file of org-mode
- Edit the post
- Use the command
org2blog/wp-post-buffer-and-publishto commit the post to Wordpress.
Some handy configurations
This is my
org=capture-templates. All posts are stored in the directory:
~/Dropbox/org/blog/, images are stored in a subdirectory of name
It’s easy to insert code snippet use
org-insert-structure-template. Except for code, we can also insert various kinds of templates:
I wrote this elisp code
org-insert-image to insert image from clipboard:
Join my Email List for more helpful insights, It's Free!😋