summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2015-05-20 16:36:13 +0200
committerAlan Pearce2015-05-20 16:36:13 +0200
commita773861e0682ee3d0204560840dccf302c4cdfb8 (patch)
tree00ac36346ebcce2e8796da55ba730d06e0f6298a
parent84b6bbad2e6fb741b8941fc932c17d00f1bf5da3 (diff)
downloaddotfiles-a773861e0682ee3d0204560840dccf302c4cdfb8.tar.lz
dotfiles-a773861e0682ee3d0204560840dccf302c4cdfb8.tar.zst
dotfiles-a773861e0682ee3d0204560840dccf302c4cdfb8.zip
Emacs: Install and configure ace-window-mode
-rw-r--r--tag-emacs/emacs.d/Cask1
-rw-r--r--tag-emacs/emacs.d/init.el13
2 files changed, 14 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/Cask b/tag-emacs/emacs.d/Cask
index 580361d..9f03ef1 100644
--- a/tag-emacs/emacs.d/Cask
+++ b/tag-emacs/emacs.d/Cask
@@ -4,6 +4,7 @@
 (source melpa-stable)
 (source org)
 
+(depends-on "ace-window")
 (depends-on "avy")
 (depends-on "ag")
 (depends-on "async")
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 28e9a18..0862130 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -1175,6 +1175,19 @@ symbol, not word, as I need this for programming the most."
 			(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))