Disable golden-ratio for guide-key buffer
This commit is contained in:
parent
88f6aa5e5d
commit
2c0176718c
|
@ -1153,6 +1153,18 @@ DELETE-FUNC when calling CALLBACK.
|
|||
ess-eval-buffer-and-go
|
||||
ess-eval-function-and-go
|
||||
ess-eval-line-and-go)))
|
||||
|
||||
;; Disable auto-resizing for some buffers
|
||||
(defun spacemacs/no-golden-ratio-for-buffers (bufname)
|
||||
"Disable golden-ratio if BUFNAME is the name of a visible buffer."
|
||||
(and (get-buffer bufname) (get-buffer-window bufname 'visible)))
|
||||
(defun spacemacs/no-golden-ratio-guide-key ()
|
||||
"Disable golden-ratio for guide-key popwin buffer."
|
||||
(or (spacemacs/no-golden-ratio-for-buffers " *guide-key*")
|
||||
(spacemacs/no-golden-ratio-for-buffers " *popwin-dummy*")))
|
||||
(add-to-list 'golden-ratio-inhibit-functions
|
||||
'spacemacs/no-golden-ratio-guide-key)
|
||||
|
||||
(spacemacs//diminish golden-ratio-mode " ⊞"))))
|
||||
|
||||
(defun spacemacs/init-google-translate ()
|
||||
|
|
Loading…
Reference in a new issue