all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.