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).
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).
Uninstall emacs-auto-complete
using yum
or dnf
and install company
using the emacs package manager. Turn company on with (global-company-mode)
ur use *mode-hook
s 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)