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
|
Loading…
Add table
Add a link
Reference in a new issue