2022-08-10 22:36:32 +02:00
2022-08-10 16:13:23 +02:00
2022-08-10 22:35:39 +02:00
2022-08-10 22:35:39 +02:00
2022-08-10 22:45:41 +02:00

Mostalive's emacs configuration

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

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

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
brew install texlive

Instal fonts for tufte style

Source of inspiration: https://so.nwalsh.com/2020/01/05-latex . Put the code in file:config.el on 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:
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

open Raleway/static

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:

\\setmonofont[Scale=MatchLowercase]{Fira Code}

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.

Features

  • Line numbers are disabled in Magit and expanding/collapsing of diffs works correctly.
  • Line numbers and side-by-side view are enabled in the terminal.

Reason / explanation in https://scripter.co/using-git-delta-with-magit/

Configuration

Troubleshooting

S
Description
Willem van den Ende's Doom Emacs configuration. Use items at your own risk.
Readme GPL-3.0
297 KiB
Languages
Emacs Lisp 91.8%
Shell 5.3%
YASnippet 1.6%
Dockerfile 1.3%