Files
dotemacs/README.org
T

98 lines
3.7 KiB
Org Mode

#+TITLE: Mostalive's emacs configuration
#+DATE: March 21, 2021
#+SINCE: November 20, 2020
#+STARTUP: inlineimages nofold
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#maintainers][Maintainers]]
- [[#plugins][Plugins]]
- [[#hacks][Hacks]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]]
- [[#pdf-export-from-latex-in-tufte-style][PDF export from latex, in tufte style]]
- [[#how-to-test][How to test]]
- [[#instal-texlive-on-macos-or-ubuntu-for-pdf][Instal texlive on MacOS or Ubuntu for PDF]]
- [[#instal-fonts-for-tufte-style][Instal fonts for tufte style]]
- [[#pretty-deltas-with-magit-delta][Pretty delta's with magit-delta]]
- [[#configuration][Configuration]]
- [[#troubleshooting][Troubleshooting]]
* Description
My doom emacs configuration.
Mostly standard stuff, some functions that were not available as packages.
The README was generated by doom emacs when creating a README.org file with it.
** Maintainers
+ @mostalive (on gitlab, github and twitter)
** Plugins
# A list of linked plugins
+ [[https://orgmode.org/][org-plus-contrib]]
+ [[https://github.com/sabof/org-bullets][org-bullets]]
+ [[https://github.com/sebastiencs/company-box][company-box]]* (=+childframe=)
+ =+present=
+ [[https://github.com/anler/centered-window-mode][centered-window]]
+ [[https://github.com/takaxp/org-tree-slide][org-tree-slide]]
+ [[https://gitlab.com/oer/org-re-reveal][org-re-reveal]]
** Hacks
Some in file:config.el. Port settings for ~org-roam-server~ are not standard, so need a function. Also some functions for replacing org-roam links with links to their website, for useto export as blog posts.
* Prerequisites
Doom Emacs installation
* Features
# An in-depth list of features, how to use them, and their dependencies.
** PDF export from latex, in tufte style
*** How to test
Render to pdf, and open preview : ~SPC m e l o~ (m e - export. l - latex, o - open in pdf viewer)
*** Instal texlive on MacOS or Ubuntu for PDF
**** What is it
Texlive is a popular Latex distribution.
**** How to test
Expect ~which tex~ to return ~/opt/homebrew/bin/tex~
**** MacOs
#+begin_src bash
brew install texlive
#+end_src
*** Instal fonts for tufte style
Source of inspiration: https://so.nwalsh.com/2020/01/05-latex . Put the code in file:config.el on [[file:20201021093300-macos.org][MacOS]]. Looks like fonts need to go in ~$HOME/Library/Fonts~. And then one needs to run ~sudo texhash~ to actually add the fonts. (https://tex.stackexchange.com/questions/93983/xetex-use-otf-font-macports comment by Alan Munn).
**** Added fonts:
***** ET Bembo:
https://github.com/DavidBarts/ET_Bembo ([[file:20210510110643-edward_tufte.org][Tufte]] font)
***** Raleway:
google fonts had it: https://fonts.google.com/specimen/Raleway Readme included https://support.apple.com/en-us/HT201749 documentation on how to install fonts on mac os.
xetex does not seem to support variable size fonts (see README in Raleway folder), so in ~Downloads~
#+begin_src bash
open Raleway/static
#+end_src
select all, and then right-click open. 'install' on the first should install all of them.
***** Fira Code
Because Operator Mono Ssm is not a free font.
FYI : I initially replaced with Fira Mono from google fonts, made by mozilla apparently. Now Fira Code by mozilla works:
#+begin_src latex
\\setmonofont[Scale=MatchLowercase]{Fira Code}
#+end_src
** Pretty delta's with magit-delta
Package added in file:packages.el enabled after magit in file:config.el.
Highlighting / theme settings in file:~/.gitconfig
* Configuration
# How to configure this module, including common problems and how to address them.
* Troubleshooting
# Common issues and their solution, or places to look for help.