1
0
Fork 0

fix: add keybind for latex block insertion

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2023-08-10 21:15:34 -07:00
parent 8d596d5a7a
commit eeb96a742d
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -1,4 +1,4 @@
;;; latex.el --- Configuration for LaTeX ;;; latexconfig.el --- Configuration for LaTeX
;;; Commentary: ;;; Commentary:
;; Custom configuration for LaTeX editing ;; Custom configuration for LaTeX editing
;;; Code: ;;; Code:
@ -12,9 +12,10 @@
(defun configure-latex () (defun configure-latex ()
"Configure my custom LaTex environment." "Configure my custom LaTex environment."
(local-set-key (kbd "C-c C-z") #'custom-compile-latex) (local-set-key (kbd "C-c C-z") #'custom-compile-latex)
(local-set-key (kbd "C-c C-b") #'latex-insert-block)
(electric-indent-mode -1)) (electric-indent-mode -1))
(add-hook 'LaTeX-mode-hook #'configure-latex) (add-hook 'LaTeX-mode-hook #'configure-latex)
(provide 'latex) (provide 'latexconfig)
;;; latex.el ends here ;;; latexconfig.el ends here