feature/popup: add company hack; don't select doc buffer popup

This commit is contained in:
Henrik Lissner 2018-04-23 01:21:07 -04:00
parent 7579110534
commit fbfba93775
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -34,6 +34,15 @@
;; External functions
;;
;; `company'
(after! company
(defun +popup*dont-select-me (orig-fn &rest args)
(let ((+popup--inhibit-select t))
(apply orig-fn args)))
(advice-add #'company-show-doc-buffer :around #'+popup*dont-select-me))
;; `eshell'
(after! eshell
(setq eshell-destroy-buffer-when-process-dies t)