Emacs setup
for nvim-orgmode
Prerequisites
- Neovim is installed with nvim-orgmode: ../neovim/neovim.html
- Emacs is installed (comes with org-mode):
$ sudo aptitude install emacs
Emacs setup
- Run
$ emacs
. This will create ~./emacs.d/. (Exit emacs with C-x C-x. $ mkdir ~/.emacs.d/lisp/
$ cd ~/.emacs.d/lisp/
$ wget https://raw.githubusercontent.com/hniksic/emacs-htmlize/master/htmlize.el
$ cd ~/.emacs.d/
$ wget https://pyyhttu.kapsi.fi/debian/emacs/emacs.d/init.el
This should be enough for basic setup.
To also have org-special-blocks-extras, then:
- Install quelpa by doing in emacs M-x package-list-packages -> Select quelpa to be installed by pressing RET.
See: https://emacs.stackexchange.com/a/76975
emacs can then initialize .org export to .html with C-c C-e.
nvim-orgmode will utilize the same org-export with<leader>oe.
Apply custom css to output like https://gongzhitaao.org/orgcss