Last updated: 2026-03-07 Sat 10:57

Emacs setup
for nvim-orgmode

Prerequisites

  • Neovim is installed with nvim-orgmode plugin
  • Emacs is installed (comes with org-mode): $ sudo aptitude install emacs

Emacs setup

  1. Run $ emacs. This will create ~./emacs.d/. Exit emacs by doing C-x C-c.
  2. $ mkdir ~/.emacs.d/lisp/ && cd ~/.emacs.d/lisp/
  3. $ wget https://raw.githubusercontent.com/hniksic/emacs-htmlize/master/htmlize.el
  4. $ cd ~/.emacs.d/
  5. $ wget https://pyyhttu.kapsi.fi/debian/emacs/emacs.d/init.el

Tweak init.el (emacs config file) to your liking. This should be enough for a 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

  1. Finally, create an .org-file and open it in emacs:
    $ touch org-mode-syntax.org && emacs org-mode-syntax.org

You can then in emacs initialize Export/Publish with C-c C-e or if you installed emacs with package emacs-gtk, then also from a Org-menu:

1.png

nvim-orgmode will call the same emcas org-export function with <leader>oe.

  1. Apply custom css to output like https://gongzhitaao.org/orgcss
Tuomas Pyyhtiä / CC BY-SA 4.0 CC logo BY logo SA logo NVim 0.11.1 (nvim-orgmode 0.7.2)