From 24f196ef4576ab1d8ab205e7378b439f2aa8e9ce Mon Sep 17 00:00:00 2001 From: tslil clingman <> Date: Tue, 29 Jun 2021 17:34:31 -0400 Subject: 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. --- emacs/inits/24-latex.el | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'emacs/inits/24-latex.el') 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) -- cgit v1.2.3