summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-08-14 11:32:15 -0500
committerCraig Jennings <c@cjennings.net>2025-08-14 11:32:15 -0500
commita44dcfc14af05abbfbc90d5fa0ae02beb4b7b7db (patch)
tree59ac946efcaff4ba891e38e946a0f47e6f655f53
parent598d69a542b50f92ed6d03b546bf2dde935faffc (diff)
downloaddotemacs-a44dcfc14af05abbfbc90d5fa0ae02beb4b7b7db.tar.gz
dotemacs-a44dcfc14af05abbfbc90d5fa0ae02beb4b7b7db.zip
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.
-rw-r--r--init.el1
-rw-r--r--modules/graphviz-config.el17
-rw-r--r--modules/latex-config.el15
3 files changed, 14 insertions, 19 deletions
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 <c@cjennings.net>
-
-;;; 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