Re: Remove company mode when editing GPG files

Tassilo Horn <[email protected]>
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
aitor <[email protected]> writes:

> Hi!
>
> I store my passwords on GPG files and manage them within emacs using the
> epa package. When editing GPG files I want to momentarily disable
> company-mode (which is set wih `(global-company-mode)' in my .init.el),
> and I use this code for that:
>
> (use-package epa
>   ;; disable company when visiting pgp files
>   :hook (auto-encryption-mode . (lambda ()
>                                   (progn
>                                     (message "auto-encryption-mode hook")
>                                     (company-mode -1)))))

I think :hook wants an alist of hooks and actions, not a single pair of
one hook with one action, i.e., you have to slap around another pair of
parentheses around your value.

HTH,
Tassilo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.