summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d/init.el
diff options
context:
space:
mode:
authorAlan Pearce2015-05-20 16:36:13 +0200
committerAlan Pearce2015-05-20 16:36:13 +0200
commita773861e0682ee3d0204560840dccf302c4cdfb8 (patch)
tree00ac36346ebcce2e8796da55ba730d06e0f6298a /tag-emacs/emacs.d/init.el
parent84b6bbad2e6fb741b8941fc932c17d00f1bf5da3 (diff)
downloaddotfiles-a773861e0682ee3d0204560840dccf302c4cdfb8.tar.lz
dotfiles-a773861e0682ee3d0204560840dccf302c4cdfb8.tar.zst
dotfiles-a773861e0682ee3d0204560840dccf302c4cdfb8.zip
Emacs: Install and configure ace-window-mode
Diffstat (limited to 'tag-emacs/emacs.d/init.el')
-rw-r--r--tag-emacs/emacs.d/init.el13
1 files changed, 13 insertions, 0 deletions
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))