#+TITLE: Emacs setup #+SUBTITLE: for nvim-orgmode #+DATE: <2024-11-17 Sun> #+AUTHOR: Tuomas Pyyhtiä #+EMAIL: pyyhttu+emacs@pm.me #+DESCRIPTION: Org mode setup for neovim #+KEYWORDS: emacs org mode #+LANGUAGE: en # Don't show table of contents, export underscore as underscore instead of # highlight in HTML (was: ^:nil), include priority cookies: #+OPTIONS: toc:nil ':t pri:t # Rest of options (as explained here: https://orgmode.org/manual/Export-Settings.html): #+OPTIONS: num:nil p:nil stat:t tags:t tasks:t tex:t timestamp:t #+BEGIN_COMMENT #+PROPERTY: header-args :eval never-export :exports both :results replace #+END_COMMENT # Include usable macros from https://github.com/fniessen/org-macros: #+INCLUDE: ../org-mode/macros/org-macros.setup #+BEGIN_COMMENT #+INFOJS_OPT: view:content ltoc:nil path:../org-mode/js/org-info.js # for more info see: https://orgmode.org/worg/code/org-info-js #+END_COMMENT #+HTML_HEAD: #+HTML_LINK_HOME: https://pyyhttu.kapsi.fi #+HTML_LINK_UP: https://pyyhttu.kapsi.fi/debian/org-mode * 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 {{{kbd(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: 7. Install =quelpa= by doing in emacs =M-x package-list-packages= -> Select =quelpa= to be installed by pressing {{{kbd(RET)}}}. See: https://emacs.stackexchange.com/a/76975 emacs can then initialize .org export to .html with {{{kbd(C-c)}}} {{{kbd(C-e)}}}. nvim-orgmode will utilize the same org-export with{{{kbd()}}}{{{kbd(o)}}}{{{kbd(e)}}}. Apply custom css to output like https://gongzhitaao.org/orgcss