1
0
Fork 0

feat: add auctex and custom latexconfig to emacs

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2023-07-21 00:33:24 -07:00
parent 56ea36d331
commit 86cb44e2b1
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,19 @@
;;; latex.el --- Configuration for LaTeX
;;; Commentary:
;; Custom configuration for LaTeX editing
;;; Code:
(defun custom-compile-latex ()
"Run the `just' command -- the command I use to compile my environment."
(interactive)
(save-buffer)
(shell-command-to-string "just"))
(defun configure-latex ()
"Configure my custom LaTex environment."
(local-set-key (kbd "C-c C-z") #'custom-compile-latex))
(add-hook 'LaTeX-mode-hook #'configure-latex)
(provide 'latex)
;;; latex.el ends here

View file

@ -58,6 +58,7 @@
(straight-use-package 'justl) (straight-use-package 'justl)
(straight-use-package 'scribble-mode) (straight-use-package 'scribble-mode)
(straight-use-package 'go-mode) (straight-use-package 'go-mode)
(straight-use-package 'auctex)
;; ====== Custom ============================= ;; ====== Custom =============================
@ -69,6 +70,7 @@
(load-library "orgconfig") (load-library "orgconfig")
(load-library "mu4econfig") (load-library "mu4econfig")
(load-library "racket") (load-library "racket")
(load-library "latexconfig")
;; ====== Hooks ============================== ;; ====== Hooks ==============================
(add-hook 'after-init-hook 'global-company-mode) (add-hook 'after-init-hook 'global-company-mode)