#+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:
* Prerequisites
1. [[../neovim/neovim.html][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 {{{kbd(C-x C-x)}}}.
2. ~$ mkdir ~/.emacs.d/lisp/ && 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 a basic setup.
To also have =org-special-blocks-extras=, then:
7. [@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
8. [@8] 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 {{{kbd(C-c)}}} {{{kbd(C-e)}}} or if you installed emacs with package =emacs-gtk=, then from a menu:
[[file:images/1.png]]
nvim-orgmode will utilize the same org-export with {{{kbd()}}}{{{kbd(o)}}}{{{kbd(e)}}}.
9. [@9] Apply custom css to output like https://gongzhitaao.org/orgcss