From: Thibaut Verron <thibaut.verron@gmail.com>
To: Dmitry Gutov <dgutov@yandex.ru>, wilnerthomas@tutanota.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: global-company-mode and company-mode
Date: Tue, 2 Aug 2022 13:41:39 +0200 [thread overview]
Message-ID: <2dc0d3f7-2c99-85f6-322c-0aff98bbc1ac@gmail.com> (raw)
In-Reply-To: <2438dd9d-6982-4b31-630f-f9a904e1e63b@yandex.ru>
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
prev parent reply other threads:[~2022-08-02 11:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-02 10:26 global-company-mode and company-mode wilnerthomas--- via Users list for the GNU Emacs text editor
2022-08-02 11:09 ` thibaut.verron
2022-08-02 11:15 ` wilnerthomas--- via Users list for the GNU Emacs text editor
2022-08-02 11:23 ` Dmitry Gutov
2022-08-02 11:41 ` Thibaut Verron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2dc0d3f7-2c99-85f6-322c-0aff98bbc1ac@gmail.com \
--to=thibaut.verron@gmail.com \
--cc=dgutov@yandex.ru \
--cc=help-gnu-emacs@gnu.org \
--cc=wilnerthomas@tutanota.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).