]> git.eshelyaron.com Git - dotfiles.git/commitdiff
Update Emacs configuration
authorEshel Yaron <me@eshelyaron.com>
Thu, 7 Sep 2023 08:36:30 +0000 (10:36 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 7 Sep 2023 08:36:30 +0000 (10:36 +0200)
.emacs.d/init.el

index 11576d35bea4d7b658768297648191d6b70b103d..37afd178d9f3ee71420c8cb7b4ca0d0e87f3c721 100644 (file)
          :pre-build (("./autogen.sh")
                      ("./configure")
                      ("make"))))
+(elpaca (breadcrumb :repo "https://github.com/joaotavora/breadcrumb"))
 (elpaca (corfu
          :pre-build (("mv" "extensions/corfu-indexed.el" "corfu-indexed.el")
                      ("rm" "-r" "extensions"))))
          :repo "https://git.sr.ht/~pkal/do-at-point"
          :pre-build (("pandoc" "-o" "do-at-point.texi" "README.md"))))
 (elpaca rfc-mode)
+(elpaca (auctex
+         :files ("*.el" "*.info*")
+         :pre-build (("./autogen.sh")
+                     ("./configure" "--with-lispdir=." "--with-texmf-dir=/tmp")
+                     ("make")
+                     ("cp" "doc/auctex.info" "doc/auctex.info-1" "doc/auctex.info-2" "doc/preview-latex.info" "."))))
 
 (elpaca-wait)
 
@@ -1255,7 +1262,8 @@ as the initial input for completion, and return that directory."
   (require 'pdf-tools))
 (with-eval-after-load 'pdf-tools
   (pdf-tools-install :no-query)
-  (add-hook 'pdf-view-mode-hook #'pdf-view-midnight-minor-mode))
+  ;; (add-hook 'pdf-view-mode-hook #'pdf-view-midnight-minor-mode)
+  )
 (add-to-list 'revert-without-query "\\.pdf\\'")
 
 ;;; Configure terminal emulation via `vterm'
@@ -1395,6 +1403,23 @@ as the initial input for completion, and return that directory."
 (with-eval-after-load 'texinfo
   (add-hook 'texinfo-mode-hook #'abbrev-mode))
 
+;;; Configure TeX
+
+(with-eval-after-load 'tex-mode
+  (add-hook 'latex-mode-hook #'electric-pair-local-mode)
+  (setq display-tex-shell-buffer-action nil
+        ;; '(display-buffer-no-window
+        ;;   (allow-no-window . t))
+        ;; latex-run-command "pdflatex"
+        )
+  (define-advice tex-terminate-paragraph (:around (fun &rest args) fill-and-indent)
+    (fill-paragraph)
+    (apply fun args)
+    (indent-according-to-mode)))
+
+(with-eval-after-load 'tex
+  (setq TeX-view-program-selection '((output-pdf "PDF Tools"))))
+
 ;;; Track currency exchange rates
 
 (defvar esy/eur-to-ils-rates nil)