Reconfigure helm

* Consistant window-splitting for helm-css-scss
* Fix popwin and unreal rules
This commit is contained in:
Henrik Lissner 2015-07-23 01:34:36 +02:00
parent 8d586b3547
commit 2269e67e5a

View file

@ -16,7 +16,7 @@
:config :config
(evil-set-initial-state 'helm-mode 'emacs) (evil-set-initial-state 'helm-mode 'emacs)
(add-popwin-rule! "\\`\\*helm.*?\\*\\'" :regexp t :position bottom :height 15) (add-popwin-rule! "^\\*[Hh]elm.*?\\*\\'" :regexp t :position bottom :height 15)
(add-unreal-buffer! "^\\*[Hh]elm.*\\*$") (add-unreal-buffer! "^\\*[Hh]elm.*\\*$")
(after! winner (after! winner
;; Tell winner-mode to ignore helm buffers ;; Tell winner-mode to ignore helm buffers
@ -25,10 +25,11 @@
"*helm imenu*" "*helm imenu*"
"*helm company*" "*helm company*"
"*helm buffers*" "*helm buffers*"
;; "*helm tags*" "*helm "
"*Helm Css SCSS*"
"*helm-ag*" "*helm-ag*"
"*Helm Swoop*")) "*Helm Swoop*"))
(push bufname winner-boring-buffers))) (push bufname narf-ignore-buffers)))
(bind! :map helm-map (bind! :map helm-map
"C-w" 'evil-delete-backward-word "C-w" 'evil-delete-backward-word
@ -36,6 +37,7 @@
"C-r" 'evil-ex-paste-from-register ; Evil registers in helm! Glorious! "C-r" 'evil-ex-paste-from-register ; Evil registers in helm! Glorious!
[escape] 'helm-keyboard-quit) [escape] 'helm-keyboard-quit)
;; Hide mode-line in helm windows
(advice-add 'helm-display-mode-line :override 'narf*helm-hide-modeline)) (advice-add 'helm-display-mode-line :override 'narf*helm-hide-modeline))
(use-package helm-ag (use-package helm-ag
@ -71,7 +73,10 @@
(use-package helm-css-scss ; https://github.com/ShingoFukuyama/helm-css-scss (use-package helm-css-scss ; https://github.com/ShingoFukuyama/helm-css-scss
:commands (helm-css-scss :commands (helm-css-scss
helm-css-scss-multi helm-css-scss-multi
helm-css-scss-insert-close-comment)) helm-css-scss-insert-close-comment)
:config
(setq helm-css-scss-split-direction 'split-window-vertically
helm-css-scss-split-with-multiple-windows t))
(use-package helm-swoop ; https://github.com/ShingoFukuyama/helm-swoop (use-package helm-swoop ; https://github.com/ShingoFukuyama/helm-swoop
:defines (helm-swoop-last-prefix-number) :defines (helm-swoop-last-prefix-number)