MooersLab / latexemacs28

LaTeX configuration file that works with Emacs28

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LaTeX configuration file that works with Emacs version 28.2

Quick start

This configuration supports writing in LaTeX and Org-mode. Git clone to latex-emacs28 to avoid subsequent editing of file paths. I do not hide this folder by prepending its names with a period.

I use chemacs2 to run this profile parallel to the default Emacs configuration in .emacs.default30 because Emacs 28.2 does not support selecting a profile on startup. I have added the following alias to my .bashAppAliases file in my home directory to start Emacs 28 with this configuration by entering e28ld. I take this approach because I have Emacs versions 28, 29 and 30 installed.

e28ld='/Applications/Emacs28.2.app/Contents/MacOS/Emacs --with-profile latex28 --debug-init'

Rationale

The other Emacs configurations posted on MooersLab work with Emacs 29.0.5 or 30.0.5. However, many people use Emacs 28.2 and will continue to do so for several years. There are slight differences in the available features of these configurations. In addition, the packages have to be compiled with the corresponding version of the elisp compiler. So far, my .emacs.default30 folder has been able to serve Emacs 28.2 and 30.0.5. I might have to make separate .emacs.default folders for each version.

Where it works

This configuration works with Mac OS 10.15 and Mac 13.1. It should work with Windows and Linux out of the box. On a 2018 MacBook Pro, Emacs finishes loading and garbage collecting in about 15 seconds on average. You can speed up the startup time by replacing use-package with require, but the loss of benefits from use-package outweighs the gain in reduced startup time.

Notes

  • The dashboard does not display in a buffer on startup. Invoke and switch to its buffer by entering Fn-F1.

  • I source my yasnippets snippets folder from my default Emacs configuration by using a soft link to the snippets folder in ~./.emacs.defualt30, so adjust as needed. I do this so that I only need to maintain one set of snippet files. Beware that newly added snippets may not appear in the pulldown menu. Hidden files listing the compiled snippets may be interfering with the addition of new snippets. The solution is to enter in the snippets directory the following bash command: rm -rf ./*/.yas-compiled-snippets.el. Then select reload everything from the yasnippets pulldown menu or enter these commands in the mini-buffer: M-x yas-recompile-all and M-x yas-reload-all.

  • To use org-pomodoro, you have to create a logbook under a TODO item in an org file with C-c C-x TAB and place the cursor (the point) on the headline of the TODO item and enter C-c o to start a "pom". I use one of my org-agenda files for this purpose. These are opened in Emacs when I fire up org-agenda with the C-c a a keybinding.

Structure of the init.el file

The first part of the `init.el' file has the essential package repository information, followed by some basic configurations that are package independent. The second part lists the package configurations in alphabetical order. The org-agenda and org-roam sections have my customized capture templates. You will likely want to adjust to suit or comment out. You may have to change the paths to the corresponding files.

Theme

I am using the ef-day theme from the ef-themes package by Protesilaos Stavro--the humble, accomplished, and inspiring Emacsen of YouTube Fame.

HTML5 Icon

Related Projects on MooersLab

About

LaTeX configuration file that works with Emacs28

License:MIT License


Languages

Language:Emacs Lisp 100.0%