[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/iwindow a32c522f80 06/13: Add iwindow-delete and iwindow-d
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/iwindow a32c522f80 06/13: Add iwindow-delete and iwindow-delete-others |
Date: |
Sun, 27 Nov 2022 16:01:12 -0500 (EST) |
branch: elpa/iwindow
commit a32c522f802b1e72883b74544c5fcb9630d89bbf
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>
Add iwindow-delete and iwindow-delete-others
---
README.org | 4 ++++
iwindow.el | 18 +++++++++++++++++-
2 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/README.org b/README.org
index 1b0a4fb9e8..e6401006cd 100644
--- a/README.org
+++ b/README.org
@@ -14,6 +14,10 @@ to somewhere, for example:
(global-set-key (kbd "C-x o") #'iwindow-select)
#+end_src
+You can swap windows with `iwindow-swap'. To delete a window, you can
+use `iwindow-delete'. And there is `iwindow-delete-others' to delete
+all window except the chosen one.
+
* Installation
IWindow isn't available on any ELPA right now. So, you have to follow
diff --git a/iwindow.el b/iwindow.el
index f63a0eb48b..d744f3230f 100644
--- a/iwindow.el
+++ b/iwindow.el
@@ -39,6 +39,10 @@
;; (global-set-key (kbd "C-x o") #'iwindow-select)
+;; You can swap windows with `iwindow-swap'. To delete a window, you
+;; can use `iwindow-delete'. And there is `iwindow-delete-others' to
+;; delete all window except the chosen one.
+
;;; Code:
(require 'cl-lib)
@@ -285,7 +289,7 @@ WINDOWS and CALLBACK is described in the docstring of
;;;###autoload
(defun iwindow-swap ()
- "Swap buffers of current window and WINDOW."
+ "Interactively swap two windows."
(interactive)
(when-let ((window (iwindow-choose
(lambda (window)
@@ -297,5 +301,17 @@ WINDOWS and CALLBACK is described in the docstring of
(set-window-buffer window current-buffer)
(select-window window))))
+;;;###autoload
+(defun iwindow-delete ()
+ "Interactively delete a window."
+ (interactive)
+ (delete-window (iwindow-choose)))
+
+;;;###autoload
+(defun iwindow-delete-others ()
+ "Interactively delete a window."
+ (interactive)
+ (delete-other-windows (iwindow-choose)))
+
(provide 'iwindow)
;;; iwindow.el ends here
- [nongnu] elpa/iwindow bfc5e97dfe 03/13: Add iwindow-swap, (continued)
- [nongnu] elpa/iwindow bfc5e97dfe 03/13: Add iwindow-swap, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 16c6c97143 09/13: Don't error when PREDICATE is nil, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 89989ad071 10/13: Minor cleanup, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow fc092c6b64 12/13: Lower Emacs minimum requirement to 24.3, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow cbbcdb32b2 05/13: Suppress runtime warning, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow f7b47e3bd8 04/13: Show keys for minibuffer on minibuffer, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 13b9c558bf 11/13: Replace cl-labels with named-let, use Compat if needed, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 144c402d5f 13/13: Add .dir-locals.el, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 6c5ea91142 02/13: Allow to use any arbitrary face to highlight, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 285f40ff09 01/13: Add iwindow-select, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow a32c522f80 06/13: Add iwindow-delete and iwindow-delete-others,
ELPA Syncer <=
- [nongnu] elpa/iwindow f5cf9ed724 07/13: Don't show raw key code on unbound key, ELPA Syncer, 2022/11/27
- [nongnu] elpa/iwindow 63426c55a9 08/13: Make window keys more predictable, ELPA Syncer, 2022/11/27