From 946312401220a8a2173638cd432770601d206a9d Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Mon, 22 Jan 2024 19:57:00 -0500 Subject: [PATCH] fix(emacs): add more math keybinds for latex Signed-off-by: Lucas Sta Maria --- .emacs.d/include/latexconfig.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.emacs.d/include/latexconfig.el b/.emacs.d/include/latexconfig.el index 5aa0386..5e6f5af 100644 --- a/.emacs.d/include/latexconfig.el +++ b/.emacs.d/include/latexconfig.el @@ -3,6 +3,7 @@ ;; Custom configuration for LaTeX editing ;;; Code: +(require 'latex) (require 'cdlatex) (defun custom-compile-latex () @@ -54,7 +55,12 @@ '((?b "\\mathbb" "\\textbf" t nil nil) (?B "\\mathbf" "\\textbf" t nil nil) (?c "\\mathcal" nil t nil nil) + (?s "\\sqrt" nil t nil nil) (?t "\\text" nil t nil nil))) +(setq LaTeX-font-list + (cons (list ?\^U "\\underline{" "}") + LaTeX-font-list)) + (provide 'latexconfig) ;;; latexconfig.el ends here