How I can replace auto-complete-mode with company-mode in all major mode using it?
i.e. make all modes which activating auto-complete-mode (e.g. c-mode or sh-mode etc), activate company-mode instead (and don't activate auto-complete-mode).
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
dnf and install
company using the emacs package manager. Turn company on with
(global-company-mode) ur use
*mode-hooks to turn it on for specific modes.
Fedora supplies some system-wide init files which turns on AC mode on some major modes.
this will do what I asked in the question:
(require 'company) (add-hook 'prog-mode-hook 'company-mode) (defun my_auto-complete-mode-hook_1 () (when auto-complete-mode (auto-complete-mode 0)) (company-mode 1)) (add-hook 'auto-complete-mode-hook 'my_auto-complete-mode-hook_1)