From 702f89dba5815c45ebb885f4511195465d68f8d5 Mon Sep 17 00:00:00 2001
From: JSDurand <mmemmew@gmail.com>
Date: Sun, 6 Jun 2021 16:44:48 +0800
Subject: init: prepare latex in the correct hook

* init.el (prepare-tex): I was adding this to the hook
  LaTeX-mode-hook, which is not run until AUCTeX is loaded, but I load
  AUCTeX inside prepare-tex. The result is that I could not
  automatically load AUCTeX. Now this is fixed by using the right
  hook.
---
 init.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init.el b/init.el
index 037df53..349f2a5 100644
--- a/init.el
+++ b/init.el
@@ -234,7 +234,7 @@ no effect."
 
 ;;; TeX configurations
 
-(prepare-in-hook-once prepare-tex LaTeX-mode-hook "tex-conf.el")
+(prepare-in-hook-once prepare-tex latex-mode-hook "tex-conf.el")
 
 ;;; elfeed
 
-- 
cgit v1.2.3-18-g5258