unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#56890: Enabling and disabling company-mode
@ 2022-08-02 12:45 wilnerthomas--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-08-03  5:22 ` Gerd Möllmann
  0 siblings, 1 reply; 2+ messages in thread
From: wilnerthomas--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-08-02 12:45 UTC (permalink / raw)
  To: 56890

[-- Attachment #1: Type: text/plain, Size: 350 bytes --]

I want to have the ability in enable and disable company-mode at will.  But I am getting confused wint the use of company-mode and global-company-mode.

To enable I use

(add-hook 'after-init-hook 'global-company-mode)

But then, how do I disable, and then enable global-company-mode again?

What does (company-mode 1) actually do?





[-- Attachment #2: Type: text/html, Size: 780 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#56890: Enabling and disabling company-mode
  2022-08-02 12:45 bug#56890: Enabling and disabling company-mode wilnerthomas--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-08-03  5:22 ` Gerd Möllmann
  0 siblings, 0 replies; 2+ messages in thread
From: Gerd Möllmann @ 2022-08-03  5:22 UTC (permalink / raw)
  To: wilnerthomas; +Cc: 56890

wilnerthomas@tutanota.com writes:

> I want to have the ability in enable and disable company-mode at will.  But I am getting confused wint the use of company-mode and
> global-company-mode.
>
> To enable I use
>
> (add-hook 'after-init-hook 'global-company-mode)
>
> But then, how do I disable, and then enable global-company-mode again?
>
> What does (company-mode 1) actually do?

Use M-x global-company-mode RET for toggling.  You can use C-h f to see
the documentation of functions.

Please use gnu-emacs-help for help requests.

Closing.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-03  5:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-02 12:45 bug#56890: Enabling and disabling company-mode wilnerthomas--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-03  5:22 ` Gerd Möllmann

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).