2019-07-05 21:29:02 +00:00
|
|
|
#+TITLE: Static blog with org-mode
|
|
|
|
#+AUTHOR: Yann Esposito
|
|
|
|
#+EMAIL: yann.esposito@gmail.com
|
2019-07-07 21:39:18 +00:00
|
|
|
#+DATE: 2019-07-04
|
2019-07-07 16:11:45 +00:00
|
|
|
#+KEYWORDS: programming, blog, org-mode
|
2019-07-05 21:29:02 +00:00
|
|
|
|
2019-07-07 16:11:45 +00:00
|
|
|
This is the first article using my new blog system.
|
2019-07-05 21:29:02 +00:00
|
|
|
|
2019-07-13 21:30:59 +00:00
|
|
|
Once in a while, I create a new personal website.
|
2019-07-07 16:11:45 +00:00
|
|
|
A long time ago, I used PHP for my first website.
|
|
|
|
I used include and took care of XHTML pages validation.
|
2019-07-13 21:30:59 +00:00
|
|
|
Then I used [[http://nanoc.ws][nanoc]], a ruby static website generator.
|
|
|
|
Then I switched to [[https://jaspervdj.be/hakyll/][hakyll]] because I wanted to switch to a Haskell's written
|
|
|
|
tool.
|
|
|
|
Now I'll try to use [[http://orgmode.org][org-mode]].
|
2019-07-05 21:29:02 +00:00
|
|
|
|
2019-07-07 16:11:45 +00:00
|
|
|
* Why?
|
2019-07-05 21:29:02 +00:00
|
|
|
|
2019-07-07 16:11:45 +00:00
|
|
|
Everything started when I was hired in a place where I was given a terrible
|
|
|
|
keyboard.
|
|
|
|
After a few weeks I started to feel a lot of pain in both my wrists.
|
|
|
|
So I started to go from classical IDE to being able to use vim
|
|
|
|
correctly[fn:vim].
|
2019-07-05 21:29:02 +00:00
|
|
|
|
2019-07-07 16:11:45 +00:00
|
|
|
Then I started to work in Clojure and I heard that emacs might certainly be a
|
|
|
|
better fit for LISP dialiects.
|
|
|
|
But, I couldn't switch to an editor without vim keybindings support because they
|
|
|
|
are so great once you're used to them.
|
2019-07-13 21:30:59 +00:00
|
|
|
By chance it was about the same time that [[http://spacemacs.org][spacemacs]] appeared and I switched.
|
|
|
|
Is is really impressive how well the vim keybindings are supported.
|
2019-07-07 16:11:45 +00:00
|
|
|
Even most of the advanced vim features I used to use worked like a charm.
|
2019-07-05 21:29:02 +00:00
|
|
|
|
2019-07-07 16:11:45 +00:00
|
|
|
The first benefit of emacs is you can configure emacs with elisp.
|
|
|
|
Which unlike vimscript looks like a correct language to work with.
|
2019-07-05 21:29:02 +00:00
|
|
|
|
2019-07-07 16:11:45 +00:00
|
|
|
One unexpected benefit of emacs was [[http://orgmode.org][org-mode]].
|
|
|
|
I always heard good things about it but it took me a while to really get it and
|
|
|
|
to understand why it is so great.
|
2019-07-05 21:29:02 +00:00
|
|
|
|
2019-07-07 16:11:45 +00:00
|
|
|
If you don't know anything about org-mode, it is many things.
|
|
|
|
First imagine a Markdown but more TODO list oriented.
|
|
|
|
But along with this, emacs has a lot of helper functions to work with those
|
|
|
|
org-mode files.
|
2019-07-05 21:29:02 +00:00
|
|
|
|
2019-07-07 21:39:18 +00:00
|
|
|
One real game changer is ~org-capture~.
|
|
|
|
You can add a task quite easily while doing other work in emacs.
|
|
|
|
|
|
|
|
|
2019-07-07 16:11:45 +00:00
|
|
|
[fn:vim] I wrote this article to help people use vim: [[http://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/][learn vim progressively]]
|