all repos — archive/dotfiles @ a773861e0682ee3d0204560840dccf302c4cdfb8

Superseded by nixfiles

Emacs: Install and configure ace-window-mode
Alan Pearce alan.pearce@spotcap.com
Wed, 20 May 2015 16:36:13 +0200
commit

a773861e0682ee3d0204560840dccf302c4cdfb8

parent

84b6bbad2e6fb741b8941fc932c17d00f1bf5da3

2 files changed, 14 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/Casktag-emacs/emacs.d/Cask
@@ -4,6 +4,7 @@ (source melpa) (source melpa-stable)
 (source org)
 
+(depends-on "ace-window")
 (depends-on "avy")
 (depends-on "ag")
 (depends-on "async")
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -1175,6 +1175,19 @@ :config (progn 			(avy-setup-default)
 			(setq avy-all-windows nil)))
 
+(req-package ace-window
+  :bind (("s-s" . ace-window))
+  :config (progn
+            (setq aw-dispatch-always t
+                  aw-dispatch-alist '((?k aw-delete-window " Ace - Delete Window")
+                                      (?m aw-swap-window " Ace - Swap Window")
+                                      (?f aw-flip-window)
+                                      (?v aw-split-window-vert " Ace - Split Vert Window")
+                                      (?b aw-split-window-horz " Ace - Split Horz Window")
+                                      (?m delete-other-windows " Ace - Maximize Window")
+                                      (?l delete-other-windows))
+                  aw-keys '(?a ?r ?s ?t ?n ?e ?i ?o))))
+
 (req-package expand-region
   :bind ("C-M-SPC" . er/expand-region))