I'm using spacemacs and tried to turn off company mode in org mode while keeping it in other major modes. I've tried the following:
(global-company-mode '(not org-mode))
but it's not working.
Disable from org-mode-hook
(this method will work with pretty much any globalized minor mode and major mode):
(defun jpk/org-mode-hook ()
(company-mode -1))
(add-hook 'org-mode-hook 'jpk/org-mode-hook)
Or use company's configuration variable:
(setq company-global-modes '(not org-mode))
在Spacemacs配置层级别,您可以为一组图层禁用自动完成图层,并在dotspacemacs-configuration-layers
使用以下行(例如,禁用org和git的自动完成)
(auto-completion :disabled-for org git)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.