Fix a auctex bug
This commit is contained in:
parent
ab96feb519
commit
980408f6cc
16
init.el
16
init.el
@ -900,7 +900,7 @@ to `posframe-show' if the display is graphical."
|
|||||||
|
|
||||||
;; flycheck
|
;; flycheck
|
||||||
(use-package flycheck
|
(use-package flycheck
|
||||||
:hook (emacs-lisp-mode . flycheck-mode)
|
:hook ((sh-mode emacs-lisp-mode) . flycheck-mode)
|
||||||
:custom
|
:custom
|
||||||
(flycheck-indication-mode 'left-margin)
|
(flycheck-indication-mode 'left-margin)
|
||||||
:init
|
:init
|
||||||
@ -1378,12 +1378,6 @@ otherwise, call `bibtex-find-text'."
|
|||||||
(add-to-list 'auto-mode-alist '("/\\.latexmkrc\\'" . perl-mode))
|
(add-to-list 'auto-mode-alist '("/\\.latexmkrc\\'" . perl-mode))
|
||||||
(add-to-list 'auto-mode-alist '("\\.[tT]e[xX]\\'" . LaTeX-mode))
|
(add-to-list 'auto-mode-alist '("\\.[tT]e[xX]\\'" . LaTeX-mode))
|
||||||
:config
|
:config
|
||||||
(add-to-list 'TeX-command-list
|
|
||||||
`("LuaLaTeX"
|
|
||||||
,(concat "lualatex %(file-line-error) %`%(extraopts) "
|
|
||||||
"%S%(PDFout)%(mode)%' %(output-dir) %t")
|
|
||||||
TeX-run-TeX nil (LaTeX-mode)
|
|
||||||
:help "Run LuaLaTeX"))
|
|
||||||
(defun my/-auctex-texdoc-setup-env (oldfun &rest args)
|
(defun my/-auctex-texdoc-setup-env (oldfun &rest args)
|
||||||
(let ((process-environment process-environment)
|
(let ((process-environment process-environment)
|
||||||
(emacs-cmd (concat "emacsclient" (and (not (display-graphic-p)) " -nw"))))
|
(emacs-cmd (concat "emacsclient" (and (not (display-graphic-p)) " -nw"))))
|
||||||
@ -1420,7 +1414,13 @@ otherwise, call `bibtex-find-text'."
|
|||||||
"gw" 'my/evil-LaTeX-fill)
|
"gw" 'my/evil-LaTeX-fill)
|
||||||
(setq-default TeX-master nil)
|
(setq-default TeX-master nil)
|
||||||
(require 'tex)
|
(require 'tex)
|
||||||
(TeX-global-PDF-mode 1))
|
(TeX-global-PDF-mode 1)
|
||||||
|
(add-to-list 'TeX-command-list
|
||||||
|
`("LuaLaTeX"
|
||||||
|
,(concat "lualatex %(file-line-error) %`%(extraopts) "
|
||||||
|
"%S%(PDFout)%(mode)%' %(output-dir) %t")
|
||||||
|
TeX-run-TeX nil (LaTeX-mode)
|
||||||
|
:help "Run LuaLaTeX")))
|
||||||
|
|
||||||
;; blueprint
|
;; blueprint
|
||||||
(use-package blueprint-ts-mode
|
(use-package blueprint-ts-mode
|
||||||
|
Loading…
Reference in New Issue
Block a user