From a598e669b4106519681161f6f41563b88421f4aa Mon Sep 17 00:00:00 2001 From: Jack Foltz Date: Thu, 1 Nov 2018 10:56:21 -0400 Subject: [PATCH] Tweak company backends --- lain/.emacs.d/config.org | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/lain/.emacs.d/config.org b/lain/.emacs.d/config.org index c104b75..4878d79 100644 --- a/lain/.emacs.d/config.org +++ b/lain/.emacs.d/config.org @@ -521,15 +521,6 @@ Make bullets look choice :hook (org-mode . org-bullets-mode)) #+END_SRC -*** Org-protocol -Allows interception of calls to =emacsclient= to trigger custom actions. -#+BEGIN_SRC emacs-lisp -(use-package org-protocol - :pin org) -(use-package org-protocol-capture - :pin org) -#+END_SRC - ** Fuzzy Matching Ivy, swiper, and counsel all provide fuzzy-matching on different emacs operations. @@ -610,8 +601,10 @@ when idling on a completion candidate. (append (list backend) '(:with company-yasnippet))) (defun foltz-add-company-backend (backend) - (add-to-list 'company-backends - (foltz-company-backend-with-yas backend))) + (if (member (foltz-company-backend-with-yas backend) company-backends) + backend + (add-to-list 'company-backends + (foltz-company-backend-with-yas backend)))) :hook (prog-mode . company-mode) :hook (cdlatex-mode . company-mode) :general