Fix oversized company-box scrollbars
This commit is contained in:
parent
b61096578a
commit
44a6c9b2c8
1 changed files with 5 additions and 7 deletions
|
@ -122,6 +122,11 @@
|
||||||
(ElispFeature . ,(all-the-icons-material "stars" :face 'all-the-icons-orange))
|
(ElispFeature . ,(all-the-icons-material "stars" :face 'all-the-icons-orange))
|
||||||
(ElispFace . ,(all-the-icons-material "format_paint" :face 'all-the-icons-pink)))))
|
(ElispFace . ,(all-the-icons-material "format_paint" :face 'all-the-icons-pink)))))
|
||||||
|
|
||||||
|
;; HACK Fix oversized scrollbar in some odd cases
|
||||||
|
;; REVIEW `resize-mode' is deprecated and may stop working in the future.
|
||||||
|
;; TODO PR me upstream?
|
||||||
|
(setq x-gtk-resize-child-frames 'resize-mode)
|
||||||
|
|
||||||
;; Disable tab-bar in company-box child frames
|
;; Disable tab-bar in company-box child frames
|
||||||
;; TODO PR me upstream!
|
;; TODO PR me upstream!
|
||||||
(add-to-list 'company-box-frame-parameters '(tab-bar-lines . 0))
|
(add-to-list 'company-box-frame-parameters '(tab-bar-lines . 0))
|
||||||
|
@ -138,13 +143,6 @@
|
||||||
((featurep sym) 'ElispFeature)
|
((featurep sym) 'ElispFeature)
|
||||||
((facep sym) 'ElispFace)))))
|
((facep sym) 'ElispFace)))))
|
||||||
|
|
||||||
(defadvice! +company-remove-scrollbar-a (orig-fn &rest args)
|
|
||||||
"This disables the company-box scrollbar, because:
|
|
||||||
https://github.com/sebastiencs/company-box/issues/44"
|
|
||||||
:around #'company-box--update-scrollbar
|
|
||||||
(letf! ((#'display-buffer-in-side-window #'ignore))
|
|
||||||
(apply orig-fn args)))
|
|
||||||
|
|
||||||
;; `company-box' performs insufficient frame-live-p checks. Any command that
|
;; `company-box' performs insufficient frame-live-p checks. Any command that
|
||||||
;; "cleans up the session" will break company-box.
|
;; "cleans up the session" will break company-box.
|
||||||
;; TODO Fix this upstream.
|
;; TODO Fix this upstream.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue