Fix #2752: self-aborting company-box/docs
This commit is contained in:
parent
fda60c529a
commit
7e40c1ebe3
2 changed files with 4 additions and 5 deletions
|
@ -17,8 +17,10 @@
|
||||||
:config
|
:config
|
||||||
(when (featurep! :editor evil)
|
(when (featurep! :editor evil)
|
||||||
(add-hook 'company-mode-hook #'evil-normalize-keymaps)
|
(add-hook 'company-mode-hook #'evil-normalize-keymaps)
|
||||||
|
(unless (featurep! +childframe)
|
||||||
;; Don't persist company popups when switching back to normal mode.
|
;; Don't persist company popups when switching back to normal mode.
|
||||||
(add-hook 'evil-normal-state-entry-hook #'company-abort)
|
;; `company-box' aborts on mode switch so it doesn't need this.
|
||||||
|
(add-hook 'evil-normal-state-entry-hook #'company-abort))
|
||||||
;; Allow users to switch between backends on the fly. E.g. C-x C-s followed
|
;; Allow users to switch between backends on the fly. E.g. C-x C-s followed
|
||||||
;; by C-x C-n, will switch from `company-yasnippet' to
|
;; by C-x C-n, will switch from `company-yasnippet' to
|
||||||
;; `company-dabbrev-code'.
|
;; `company-dabbrev-code'.
|
||||||
|
|
|
@ -48,9 +48,6 @@ This marks a foldable marker for `outline-minor-mode' in elisp buffers.")
|
||||||
;; variable-width indentation is superior in elisp
|
;; variable-width indentation is superior in elisp
|
||||||
(add-to-list 'doom-detect-indentation-excluded-modes 'emacs-lisp-mode nil #'eq)
|
(add-to-list 'doom-detect-indentation-excluded-modes 'emacs-lisp-mode nil #'eq)
|
||||||
|
|
||||||
;; Use helpful instead of describe-* from `company'
|
|
||||||
(advice-add #'elisp--company-doc-buffer :around #'doom-use-helpful-a)
|
|
||||||
|
|
||||||
(add-hook! 'emacs-lisp-mode-hook
|
(add-hook! 'emacs-lisp-mode-hook
|
||||||
#'outline-minor-mode
|
#'outline-minor-mode
|
||||||
;; fontificiation
|
;; fontificiation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue