4

I set this in helm

(setq helm-split-window-in-side-p nil)

This forces helm to use selected window for helm session like this(When point is in right split, helm buffer popped in left split only).

enter image description here

Now when I use swiper-helm, it doesn't honor this. It will open helm session in different split.

How can I make swiper-helm and all other packages which use helm as frontend (like helm-recent-dirs, helm-github-stars), to use custom helm config?

Sean Allred
  • 6,861
  • 16
  • 85
Chillar Anand
  • 4,042
  • 1
  • 23
  • 52

1 Answers1

3

You need to customize swiper-helm-display-function. In swiper-helm, helm-display-function is let-bound to swiper-helm-display-function.

Should be as simple as:

(setq swiper-helm-display-function 'helm-default-display-buffer)

As for other commands that you asked about, it's likely that they bind helm-display-function as well. Just examine their code and change the corresponding defcustom.

abo-abo
  • 13,943
  • 1
  • 29
  • 43
  • I use ~20 of helm packages. I dont want to check each and every function and customize it. I am wondering if there is a generic way to make all such package conform to custom layout? – Chillar Anand Sep 15 '15 at 17:19
  • There isn't. ~20 helm packages are very losely related by helm. They can have different authors with different ideas for implementing the window-splitting behavior. – abo-abo Sep 15 '15 at 17:33