Hi Jean, >>>>> Jean Eid <[email protected]> writes: > I figured that I do some more investigation before I come back to you.
Thank you for your reply. > 1- I had the following > (add-hook ‘LaTeX-mode-hook > (lambda () > (setq local-abbrev-table LaTeX-mode-abbrev-table) > )) > then I changed it to > (add-hook ‘latex-mode-hook > (lambda () > (setq local-abbrev-table LaTeX-mode-abbrev-table) > )) I believe none of the above two are necessary. Please remove them. AUCTeX do that automatically on your behalf. > and now seems to work, but none of the following actually works. The > hook no longer loads the files > (add-hook ‘TeX-mode-hook > ‘(lambda() > (TeX-PDF-mode t) There is no need to turn on `TeX-PDF-mode' explicitly because it is enabled by default now. > (load-library “my-latex.el”) > (load-library “my-abbreviations.el”) > (load-library “my-latex-abbreviation-functions.el”) > )) > (add-hook ‘latex-mode-hook AUCTeX ignores `latex-mode-hook', which is only relevant for Emacs built-in latex mode. AUCTeX LaTeX mode sees `LaTeX-mode-hook' only. > (add-hook ‘LaTeX-mode-hook > (lambda () > (TeX-PDF-mode 1) Again, you don't need it. > (require ‘my-latex) > (require ‘my-abbreviations) > (require ‘my-latex-abbreviation-functions))) > (add-hook ‘latex-mode-hook Same as above. > (lambda () > (TeX-PDF-mode 1) > (require ‘my-latex) > (require ‘my-abbreviations) > (require ‘my-latex-abbreviation-functions))) > but I I M-x load-file and load the files manually, everything works. I can't tell why your personal libraries (my-*.el) don't take effect yet. Could you show us their contents, hiding sensitive data if any? Ikumi Keita #StandWithUkraine #StopWarInUkraine #Gaza #StopGenocide #CeasefireNOW #IProtestAgainstTrumpAndNetanyahu'sAttackOnIran,WhichViolatesInternationalLaw
