Skip to content

Commit

Permalink
refactor(auctex-latexmk): remove unnecessary hook
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 18, 2023
1 parent 79cd9c8 commit db88d81
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/me-latex.el
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,13 @@
;; Enable only if Latexmk is available
(when (executable-find "latexmk")
(setq-default
TeX-command-default "LatexMk-2"
TeX-command-list
(cons
'("LatexMk-2" "latexmk -shell-escape %(-PDF)%S%(mode) %(file-line-error) %(extraopts) %t" TeX-run-latexmk nil
(plain-tex-mode latex-mode doctex-mode) :help "Run LatexMk with shell-escape")
TeX-command-list))

(add-hook
'LaTeX-mode-hook
(defun +tex--set-latexmk-as-default-cmd-h ()
(setq TeX-command-default "LatexMk-2")))

;; Add LatexMk as a TeX target.
(auctex-latexmk-setup)))

Expand Down

0 comments on commit db88d81

Please sign in to comment.