summary refs log tree commit diff
path: root/emacs.d/inits/20_helm.el
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-01-29 09:26:03 -0800
committerFranck Cuny <franckcuny@gmail.com>2016-01-29 09:26:03 -0800
commitdbb650fc6dadecc788b86d8f0f6ef9d88b574b49 (patch)
tree39411e63fa3a39f4e04e7e1bd5c3f4460e92e5cc /emacs.d/inits/20_helm.el
parent[emacs] stop using `smart-mode-line` module. (diff)
downloademacs.d-dbb650fc6dadecc788b86d8f0f6ef9d88b574b49.tar.gz
[emacs] always split the frame vertically for helm
Instead of having either vertical or horizontal split, always force the
split to be vertical.
Diffstat (limited to '')
-rw-r--r--emacs.d/inits/20_helm.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs.d/inits/20_helm.el b/emacs.d/inits/20_helm.el
index 9186105..6795e23 100644
--- a/emacs.d/inits/20_helm.el
+++ b/emacs.d/inits/20_helm.el
@@ -2,6 +2,12 @@
   :ensure t
   :bind (("C-x C-f" . helm-find-files)
          ("M-x" . helm-M-x))
+  :init
+  (setq helm-display-function
+        (lambda (buf)
+          (split-window-vertically)
+          (other-window 1)
+          (switch-to-buffer buf)))
   :config
   (helm-mode))