From 5dbdaa19c8843079eeda38d029fc0069ec15ed74 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Fri, 3 Feb 2023 11:20:01 -0500 Subject: [emacs] avy config --- dot_emacs.tmpl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dot_emacs.tmpl') diff --git a/dot_emacs.tmpl b/dot_emacs.tmpl index ca973a7..aaa0c56 100644 --- a/dot_emacs.tmpl +++ b/dot_emacs.tmpl @@ -98,6 +98,14 @@ (use-package autorevert :diminish auto-revert-mode) +(use-package avy + :ensure t + :config + (avy-setup-default) + :bind + (("C-c C-j" . avy-resume) + ("C-;" . avy-goto-char-2))) + (use-package bibtex :mode ("\\.bib\'" . bibtex-mode) :custom -- cgit v1.2.3 From 50dac41847d3570f7c27073cd11c0e704b761627 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Fri, 3 Feb 2023 11:26:43 -0500 Subject: [emacs] switch to ivy/counsel --- dot_emacs.tmpl | 42 ++++++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 18 deletions(-) (limited to 'dot_emacs.tmpl') diff --git a/dot_emacs.tmpl b/dot_emacs.tmpl index aaa0c56..2999235 100644 --- a/dot_emacs.tmpl +++ b/dot_emacs.tmpl @@ -223,14 +223,13 @@ Extended Format date in the date field and return it as a string obeing (seq-do (lambda (pair) (add-to-list 'bibtex-autokey-titleword-change-strings pair)) charMap)))) (use-package bibtex-completion - :ensure helm-bibtex + :ensure ivy-bibtex :custom (bibtex-completion-bibliography "~/Documents/papers/library.bib") (bibtex-completion-library-path '("~/Documents/papers/pdfs/")) (bibtex-completion-notes-path "~/Documents/papers/notes/") (bibtex-completion-notes-extension ".org") - (bibtex-completion-pdf-extension '(".pdf" ".djvu" ".txt")) - :bind (("C-c b" . helm-bibtex))) + (bibtex-completion-pdf-extension '(".pdf" ".djvu" ".txt"))) (use-package cc-mode :custom @@ -275,6 +274,13 @@ Extended Format date in the date field and return it as a string obeing (setq-local company-backends '(company-org-block)) (company-mode +1))))) +(use-package counsel + :ensure t + :bind (("C-x C-b" . counsel-ibuffer) + ("C-x C-f" . counsel-find-file) + ("M-x" . counsel-M-x) + ("M-y" . counsel-yank-pop))) + (use-package cus-edit :custom (custom-file null-device "Don't store customizations")) @@ -378,19 +384,6 @@ Extended Format date in the date field and return it as a string obeing :hook ((haskell-mode . turn-on-haskell-doc-mode) (haskell-mode . turn-on-haskell-indentation))) -(use-package helm - :ensure t - :bind (("M-x" . helm-M-x) - ("C-x C-f" . helm-find-files) - ("C-x C-b" . helm-mini) - :map helm-map - ("" . helm-select-action)) - :config - (helm-mode 1)) - -(use-package helm-org - :ensure t) - (use-package info-look :ensure t) @@ -400,6 +393,19 @@ Extended Format date in the date field and return it as a string obeing :custom (ispell-dictionary "en_CA-w_accents")) +(use-package ivy + :ensure t + :diminish + :custom + (ivy-use-virtual-buffers t) + (ivy-count-format "(%d/%d) ") + :config + (ivy-mode 1)) + +(use-package ivy-bibtex + :ensure t + :bind (("C-c b" . ivy-bibtex))) + (use-package latex :ensure auctex :after info-look @@ -577,7 +583,7 @@ Otherwise split the current paragraph into one sentence per line." (use-package org-ref :ensure t - :after helm-bibtex) + :after ivy-bibtex) (use-package org-ref-arxiv :ensure org-ref @@ -681,7 +687,7 @@ Returns a formatted BibTeX entry." :ensure org-ref :after org-ref-bibtex :after reftex-cite - :after helm-bibtex + :after ivy-bibtex :bind (:map bibtex-mode-map ("C-c C-c" . org-ref-clean-bibtex-entry) ("C-c e" . my/set-source-ev) -- cgit v1.2.3