X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=emacs%2Fnotmuch-company.el;h=c6a004aebe92bcd447ee93729a54a2518052200b;hb=03366a3c5aa313de41bddd61dedc5b5c002e0469;hp=9e7430295773faa7559894a898363be1ad7d814c;hpb=9fadab4e63afcc2adf06eac964da8bc8e5c9cd47;p=notmuch diff --git a/emacs/notmuch-company.el b/emacs/notmuch-company.el index 9e743029..c6a004ae 100644 --- a/emacs/notmuch-company.el +++ b/emacs/notmuch-company.el @@ -32,8 +32,6 @@ ;;; Code: -(eval-when-compile (require 'cl-lib)) - (require 'notmuch-lib) (defvar-local notmuch-company-last-prefix nil) @@ -55,8 +53,7 @@ ;;;###autoload (defun notmuch-company-setup () (company-mode) - (make-local-variable 'company-backends) - (setq company-backends '(notmuch-company)) + (setq-local company-backends '(notmuch-company)) ;; Disable automatic company completion unless an internal ;; completion method is configured. Company completion (using ;; internal completion) can still be accessed via standard company @@ -103,7 +100,6 @@ (run-hook-with-args 'notmuch-address-post-completion-functions arg)) (no-cache t)))) - (provide 'notmuch-company) ;;; notmuch-company.el ends here