Last updated: 2025-03-01 Sat 12:54

Emacs setup
for nvim-orgmode

Prerequisites

  1. Neovim with nvim-orgmode setup
  2. 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-x.
  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

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 from a menu:

1.png

nvim-orgmode will utilize the same org-export with <leader>oe.

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