Better accomodate helm on left and right.

This commit is contained in:
ralesi 2015-09-07 10:51:36 -07:00 committed by syl20bnr
parent 14ef7d7c88
commit 8bcd42b33e
1 changed files with 6 additions and 4 deletions

View File

@ -565,8 +565,10 @@ Example: (evil-map visual \"<\" \"<gv\")"
spacemacs/helm-find-contrib-file)
:config
(progn
(when dotspacemacs-helm-resize
(setq helm-autoresize-min-height 1)
(when (and dotspacemacs-helm-resize
(or (eq dotspacemacs-helm-position 'bottom)
(eq dotspacemacs-helm-position 'top)))
(setq helm-autoresize-min-height 10)
(helm-autoresize-mode 1))
;; from https://www.reddit.com/r/emacs/comments/2z7nbv/lean_helm_window/
@ -606,8 +608,7 @@ Removes the automatic guessing of the initial value based on thing at point. "
default-input))
(t (expand-file-name (helm-current-directory))))))
(set-text-properties 0 (length input) nil input)
(helm-find-files-1 input )))
)
(helm-find-files-1 input ))))
:init
(progn
(setq helm-prevent-escaping-from-minibuffer t
@ -788,6 +789,7 @@ Removes the automatic guessing of the initial value based on thing at point. "
(display-buffer-in-side-window)
(inhibit-same-window . t)
(side . ,dotspacemacs-helm-position)
(window-width . 0.6)
(window-height . 0.4)))
(defvar spacemacs-display-buffer-alist nil)
(defun spacemacs//helm-prepare-display ()