Disable auto-completion when visiting GPG files

aitor <[email protected]>
Newsgroups gmane.emacs.help
Message-ID <aaE8eFH0JqLAT_3J@sipc87>
Hi!

(I'm slightly changed the subject)

On Thu, Feb 26, 2026 at 02:59:42PM +0100, Michael Heerdegen via Users list for the GNU Emacs text editor wrote:
> This will give you this:
> 
> #+begin_src emacs-lisp
> (add-hook 'auto-encryption-mode-hook
>                   #'(lambda nil
>                       (progn
>                         (message "auto-encryption-mode hook")
>                         (company-mode -1))))
> #+end_src
> 
> But `auto-encryption-mode' is a global mode.  So auto encryption itself
> will not the that hook.  Toggling the global mode will.

Thanks everybody for the help. However, I'm still unsure on how to
proceed in order to disable auto-completion (company-mode) when visiting
".gpg" files. Any ideas?

best,

aitor
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.