feat: add auctex
and custom latexconfig
to emacs
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
56ea36d331
commit
86cb44e2b1
2 changed files with 21 additions and 0 deletions
19
.emacs.d/include/latexconfig.el
Normal file
19
.emacs.d/include/latexconfig.el
Normal 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
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue