diff options
| author | tslil clingman <> | 2021-06-29 17:34:31 -0400 |
|---|---|---|
| committer | tslil clingman <> | 2021-06-29 18:28:18 -0400 |
| commit | 24f196ef4576ab1d8ab205e7378b439f2aa8e9ce (patch) | |
| tree | 9c1a4329e2f055ad80b7e0d5bd5a6f7843ac789f /emacs/inits/24-latex.el | |
| parent | d550a210bd05a0019ce3e1757d8ec32731d0f72c (diff) | |
Switch from Selectrum+CTRLF to vertico+consult+marginalia
In the process, rid myself of company and everything that depended on
it (RIP elpy), because i want a uniform interface for capfs, and
that's vertico+consult.
Diffstat (limited to 'emacs/inits/24-latex.el')
| -rw-r--r-- | emacs/inits/24-latex.el | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/emacs/inits/24-latex.el b/emacs/inits/24-latex.el index a123c04..5fa8982 100644 --- a/emacs/inits/24-latex.el +++ b/emacs/inits/24-latex.el @@ -1,6 +1,6 @@ -;; Time-stamp: <2020-06-11 11:56:37 (tslil@bison)> +;; Time-stamp: <2021-06-29 17h27 EDT (hobbies)> -(defvar latex-template-dir (expand-file-name "~/academic/typeset/latex-templates")) +(defvar latex-template-dir (expand-file-name "~/typeset/latex-templates")) (defun prompt-latex-file-template () "Check if tex file does not exist or the command was called interactively. If neither, prompt to insert from a template @@ -22,19 +22,6 @@ populated from the directory *latex-template-dir*" (use-package cdm-mode :load-path "~/.emacs.d/scripts/") -(use-package company-auctex :ensure t :defer t) - -(use-package company-reftex :ensure t - :defer t - :config - (defun company-reftex-label-candidates (prefix) - "Find all label candidates matching PREFIX." - (reftex-access-scan-info t) ; This t is the difference i wanted - (cl-loop for entry in (symbol-value reftex-docstruct-symbol) - if (and (stringp (car entry)) (string-prefix-p prefix (car entry))) - collect - (company-reftex-annotate (car entry) (cl-caddr entry))))) - (use-package unfill :ensure t) (use-package latex @@ -73,12 +60,7 @@ populated from the directory *latex-template-dir*" (defun latex-setup-completions () (interactive) (require 'reftex) - (turn-on-reftex) - (require 'company-auctex) - (require 'company-reftex) - (dolist (backend '(company-auctex-macros company-auctex-symbols company-auctex-environments - company-reftex-citations company-reftex-labels)) - (add-to-list 'company-backends backend))) + (turn-on-reftex)) (defun better-TeX-insert-single-quote () (interactive) |
