Skip to content

Instantly share code, notes, and snippets.

View egstatsml's full-sized avatar

egstatsml egstatsml

  • Brisbane, Australia
View GitHub Profile

My Latex Setup with Doom. In my init.el file, I have

(latex
 +lsp
 +latexmk
 +cdlatex
 +fold)             ; writing papers in Emacs has never been so fun
;; add a bunch of items to a list
;; think I got this from doom
(defun ethan/append-to-list (list-var elements)
"Append ELEMENTS to the end of LIST-VAR.
The return value is the new value of LIST-VAR."
(unless (consp elements)
(error "ELEMENTS must be a list"))
(let ((list (symbol-value list-var)))
(if list