Some changes

This commit is contained in:
2024-10-14 16:12:36 -07:00
parent 7cd012f02b
commit a83f5ea6c1
2 changed files with 17 additions and 5 deletions

17
init.el
View File

@ -643,6 +643,8 @@ visual states."
(use-package corfu
:bind (("M-<tab>" . completion-at-point)
:map corfu-map
("C-j" . corfu-next)
("C-k" . corfu-previous)
("M-SPC" . corfu-insert-separator)
("M-m" . my/corfu-move-to-minibuffer))
:init
@ -1127,6 +1129,17 @@ otherwise, call `bibtex-find-text'."
(add-to-list 'major-mode-remap-alist '(doctex-mode . docTeX-mode))
(add-to-list 'auto-mode-alist '("/\\.latexmkrc\\'" . perl-mode))
:config
(defun my/-auctex-texdoc-setup-env (oldfun &rest args)
(let ((process-environment))
(if (display-graphic-p)
(progn (setenv "MDVIEWER_texdoc" "emacsclient")
(setenv "PDFVIEWER_texdoc" "emacsclient")
(setenv "PAGER_texdoc" "emacsclient"))
(setenv "MDVIEWER_texdoc" "emacsclient -nw")
(setenv "PDFVIEWER_texdoc" "evince")
(setenv "PAGER_texdoc" "emacsclient -nw"))
(apply oldfun args)))
(advice-add 'TeX-documentation-texdoc :around 'my/-auctex-texdoc-setup-env)
(defun my/-setup-LaTeX-mode ()
(setq evil-lookup-func 'latex-help-at-point))
(setq TeX-auto-save t
@ -1541,8 +1554,8 @@ argument."
(eshell-load . eat-eshell-mode)
(eshell-mode . my/-eshell-mode-setup))
:bind (:map eshell-mode-map
("TAB" . company-complete)
("<tab>" . company-complete))
("TAB" . completion-at-point)
("<tab>" . completion-at-point))
:init
(defun my/-eshell-mode-setup ()
"Setup function run from `eshell-mode-hook'"