UP | HOME
Last updated: 2024-11-17 Sun 21:33

Emacs setup
for nvim-orgmode

Prerequisites

  1. Neovim is installed with nvim-orgmode: ../neovim/neovim.html
  2. Emacs is installed (comes with org-mode): $ sudo aptitude install emacs

Emacs setup

  1. Run $ emacs. This will create ~./emacs.d/. (Exit emacs with C-x C-x.
  2. $ mkdir ~/.emacs.d/lisp/
  3. $ cd ~/.emacs.d/lisp/
  4. $ wget https://raw.githubusercontent.com/hniksic/emacs-htmlize/master/htmlize.el
  5. $ cd ~/.emacs.d/
  6. $ 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:

  1. 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

Tuomas Pyyhtiä / CC BY-SA NVim 0.9.5 (nvim-orgmode 0.3.4)