unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* global-company-mode and company-mode
@ 2022-08-02 10:26 wilnerthomas--- via Users list for the GNU Emacs text editor
  2022-08-02 11:09 ` thibaut.verron
  0 siblings, 1 reply; 5+ messages in thread
From: wilnerthomas--- via Users list for the GNU Emacs text editor @ 2022-08-02 10:26 UTC (permalink / raw)
  To: Help Gnu Emacs


I do not understand how to enable `company-mode'.  Because there is (company-mode 1)
and `(add-hook 'after-init-hook 'global-company-mode)'.

What is the difference between the two.  Why 'after-init-hook is used, cannot there just be
(global-company-mode 1)?

When using `add-hook', how would I disable `global-company-mode' later?



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

end of thread, other threads:[~2022-08-02 11:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).