help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: global-company-mode and company-mode


From: Thibaut Verron
Subject: Re: global-company-mode and company-mode
Date: Tue, 2 Aug 2022 13:41:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 02/08/2022 13:23, Dmitry Gutov wrote:
On 02.08.2022 14:15, wilnerthomas--- via Users list for the GNU Emacs text editor wrote:
Right.  Is there the command (global-company-mode -1) available?  What if I want to enable global-company-mode, would I use the hook?

Just 'M-x global-company-mode' in both cases. It toggles.

Or evaluate (global-company-mode 1), or customize the value of the variable global-company-mode (with M-x customize-group).

Really, the after-init-hook should only run when starting emacs, so changing it will only have an effect when restarting emacs (provided that the changes are saved between sessions), or using run-hook manually (but this might have undesirable side-effects with whatever else is done in the hook). It is really not meant to make changes to the status of a running emacs.

Best wishes,

Thibaut





reply via email to

[Prev in Thread] Current Thread [Next in Thread]