[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master e5638b1 12/14: ace-window.el (aw-swap-invert): New defcust
From: |
Oleh Krehel |
Subject: |
[elpa] master e5638b1 12/14: ace-window.el (aw-swap-invert): New defcustom |
Date: |
Thu, 04 Jun 2015 17:05:18 +0000 |
branch: master
commit e5638b18201c9e06943832f42f6c707563351666
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
ace-window.el (aw-swap-invert): New defcustom
* ace-window.el (aw-swap-window): Update.
Fixes #52
---
ace-window.el | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/ace-window.el b/ace-window.el
index 30c0f6a..a1c12ed 100644
--- a/ace-window.el
+++ b/ace-window.el
@@ -447,6 +447,10 @@ Windows are numbered top down, left to right."
(delete-window window)
(error "Got a dead window %S" window)))))
+(defcustom aw-swap-invert nil
+ "When non-nil, the other of the two swapped windows gets the point."
+ :type 'boolean)
+
(defun aw-swap-window (window)
"Swap buffers of current window and WINDOW."
(cl-labels ((swap-windows (window1 window2)
@@ -464,7 +468,9 @@ Windows are numbered top down, left to right."
(when (and (window-live-p window)
(not (eq window this-window)))
(aw--push-window this-window)
- (swap-windows this-window window)))))
+ (if aw-swap-invert
+ (swap-windows window this-window)
+ (swap-windows this-window window))))))
(defun aw-split-window-vert (window)
"Split WINDOW vertically."
- [elpa] master 4357c90 02/14: Add a require, (continued)
- [elpa] master 4357c90 02/14: Add a require, Oleh Krehel, 2015/06/04
- [elpa] master cf91510 05/14: README.md: Add a section on midway switch, Oleh Krehel, 2015/06/04
- [elpa] master e777570 04/14: Allow to change window action midway, Oleh Krehel, 2015/06/04
- [elpa] master 1487ae1 07/14: Update README.md, Oleh Krehel, 2015/06/04
- [elpa] master eef897e 08/14: Update README.md, Oleh Krehel, 2015/06/04
- [elpa] master dd84ff6 09/14: Fix aw-ignore-current for 3 windows, Oleh Krehel, 2015/06/04
- [elpa] master 56ef753 06/14: Allow to midway switch from less than 3 windows, Oleh Krehel, 2015/06/04
- [elpa] master c82d439 03/14: Update requires, Oleh Krehel, 2015/06/04
- [elpa] master 155b6c6 11/14: ace-window.el: Bump version, Oleh Krehel, 2015/06/04
- [elpa] master 4546f20 01/14: Allow to switch the action in the middle of ace-window, Oleh Krehel, 2015/06/04
- [elpa] master e5638b1 12/14: ace-window.el (aw-swap-invert): New defcustom,
Oleh Krehel <=
- [elpa] master 243ee46 10/14: Allow to switch to all empty buffers (read-only as well), Oleh Krehel, 2015/06/04
- [elpa] master 97a2f93 13/14: Small changes to README, Oleh Krehel, 2015/06/04
- [elpa] master a4ab5a4 14/14: Merge commit '97a2f9340b19c1b8c31455b3219fb88f39d38f1b' from ace-window, Oleh Krehel, 2015/06/04