Abstract popwin defuns

This commit is contained in:
Henrik Lissner 2015-11-19 05:55:21 -05:00
parent 0cd60e5ae8
commit 5193970d8f
13 changed files with 39 additions and 110 deletions

View file

@ -29,7 +29,7 @@
"M-b" 'narf:build
"M-t" 'helm-projectile-find-file
"A-`" 'narf-switch-to-iterm
"C-`" 'narf/popwin-toggle
"C-`" 'narf/popup-toggle
"<f9>" 'what-face
"M-w" 'evil-window-delete
@ -322,8 +322,8 @@
:n "]]" 'help-go-forward
:n "[[" 'help-go-back
:n "<escape>" (λ (kill-buffer)
(if (eq popwin:popup-buffer (current-buffer))
(popwin:close-popup-window)
(if (narf/popup-p (current-buffer))
(narf/popup-close)
(evil-window-delete)))))
(:map evil-ex-completion-map

View file

@ -26,13 +26,13 @@
(exmap "k[ill]all" 'narf:kill-all-buffers) ; Kill all buffers (bang = in project)
(exmap "k[ill]buried" 'narf:kill-buried-buffers) ; Kill all buried buffers (bang = in project)
(exmap "k[ill]o" 'narf:kill-unreal-buffers)
(exmap "l[ast]" 'popwin:popup-last-buffer)
(exmap "m[sg]" 'popwin:messages)
(exmap "l[ast]" 'narf:popup-last-buffer)
(exmap "m[sg]" 'narf:popup-messages)
(exmap "ma[ke]" 'narf:build)
(exmap "mv" 'narf:file-move)
(exmap "na[rrow]" 'narf:narrow) ; Narrow buffer to selection
(exmap "wi[den]" 'narf:widen) ; Widen narrowed buffer
(exmap "pop" 'narf/popwin-toggle)
(exmap "pop" 'narf/popup-toggle)
(exmap "proj[ect]" 'helm-projectile-switch-project)
(exmap "rec[ent]" 'narf:helm-recentf)
(exmap "re[gex]" 'narf:regex)