Re: Disable auto-completion when visiting GPG files

Michael Heerdegen via Users list for the GNU Emacs text editor <[email protected]>
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
aitor <[email protected]> writes:

> global (I have `(global-company-mode)` in my .init.el)

Ok.

I installed it from Elpa to have a look.  That global mode enables
company-mode on a per buffer basis by calling `company-mode-on'.
Unfortunately this mechanic doesn't fit your use case: the configuration
variable `company-global-modes' probably can't be used here AFAIU.

So since there is no official way to prevent company-mode to be turned
on, you will have to turn it off again.  I would try to put something to
the end of `find-file-hook' that turns company-mode off for that buffer
- similar to `epa-file-find-file-hook'.  Use `epa-file-name-p' as a
check.

I see no simpler way here.  Can you try that, or do you need further
assistance (concrete code)?


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