From a44dcfc14af05abbfbc90d5fa0ae02beb4b7b7db Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Thu, 14 Aug 2025 11:32:15 -0500 Subject: refactor(latex): merge Graphviz config into module Remove standalone graphviz-config.el and its init.el require. Move graphviz-dot-mode setup into latex-config.el, add company-auctex initialization, and update AUCTeX section comment. --- init.el | 1 - modules/graphviz-config.el | 17 ----------------- modules/latex-config.el | 15 ++++++++++++++- 3 files changed, 14 insertions(+), 19 deletions(-) delete mode 100644 modules/graphviz-config.el diff --git a/init.el b/init.el index eaaed853..f2e5c866 100644 --- a/init.el +++ b/init.el @@ -48,7 +48,6 @@ (require 'diff-config) ;; ediff and ztree configuration (require 'eshell-vterm-config) ;; shell and terminal configuration (require 'flyspell-config) ;; spell check configuration -(require 'graphviz-config) ;; merge with latex module? (require 'help-utils) ;; search: arch-wiki, devdoc, tldr, wikipedia (require 'help-config) ;; info, man, help config (require 'latex-config) ;; need to fix diff --git a/modules/graphviz-config.el b/modules/graphviz-config.el deleted file mode 100644 index d5428e5a..00000000 --- a/modules/graphviz-config.el +++ /dev/null @@ -1,17 +0,0 @@ -;;; graphviz-config --- Graphviz Dot Mode Setup -*- lexical-binding: t; -*- -;; author Craig Jennings - -;;; Commentary: - -;;; Code: - - -;;;; ----------------------- Graphviz-Dot-Mode ----------------------- - -(use-package graphviz-dot-mode - :config - (setq graphviz-dot-indent-width 4)) - - -(provide 'graphviz-config) -;;; graphviz-config.el ends here diff --git a/modules/latex-config.el b/modules/latex-config.el index b0c72940..69f84948 100644 --- a/modules/latex-config.el +++ b/modules/latex-config.el @@ -10,7 +10,7 @@ ;;; Code: -;;;; ----------------------------- Auctex ---------------------------- +;; ----------------------------- Auctex And Related ---------------------------- (use-package tex :ensure auctex @@ -35,5 +35,18 @@ (auctex-latexmk-setup) (setq auctex-latexmk-inherit-TeX-PDF-mode t)) +(use-package company-auctex + :ensure t + :init (company-auctex-init)) + + +;; ----------------------------- Graphviz Dot Mode ----------------------------- + +(use-package graphviz-dot-mode + :config + (setq graphviz-dot-indent-width 4)) + + + (provide 'latex-config) ;;; latex-config.el ends here -- cgit v1.2.3