1
0
Fork 0
dotfiles/.emacs.d/include/latexconfig.el
Lucas Sta Maria 1522335fdb
fix: remove automatic indentation in latex
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
2023-08-08 20:22:48 -07:00

20 lines
531 B
EmacsLisp

;;; 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)
(electric-indent-mode -1))
(add-hook 'LaTeX-mode-hook #'configure-latex)
(provide 'latex)
;;; latex.el ends here