[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/window-commander 54ca1baa14 030/170: ; Restructure READ
From: |
ELPA Syncer |
Subject: |
[elpa] externals/window-commander 54ca1baa14 030/170: ; Restructure README and commentary |
Date: |
Wed, 28 Jun 2023 19:00:22 -0400 (EDT) |
branch: externals/window-commander
commit 54ca1baa14ec5420a1be011d6ee7cd587006db44
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>
; Restructure README and commentary
---
README | 57 +++++++++++++++++++++++++++++++++++----------------------
swsw.el | 22 +++++++++++++++++-----
2 files changed, 52 insertions(+), 27 deletions(-)
diff --git a/README b/README
index 9ebcae6515..3df48df549 100644
--- a/README
+++ b/README
@@ -1,42 +1,55 @@
-swsw - simple window switching
+swsw - Simple window switching
-DESCRIPTION
+swsw (simple window switching) is an Emacs package which provides a minor mode
+for switching to windows using IDs assigned to them automatically.
-swsw is an Emacs package which provides a minor mode for switching windows
-similarly to `ace-window' and `switch-window'.
+Installation:
-USAGE
+Currently, only manual installation is available:
-When swsw-mode is active:
-- A window ID is displayed using a mode line lighter or a display function.
-- A single (predefined) character CHAR corresponds to the minibuffer.
-- Pressing M-x swsw-select RET ID switches focus to the window which
- corresponds to ID, or to the minibuffer if CHAR is entered.
+Clone the repository:
-INSTALLATION
+$ cd ~
-Currently, only manual installation is available:
+$ git clone 'https://git.sr.ht/~dsemy/swsw'
-1. Clone the repository:
+Install the package:
-$ cd $your_emacs_directory
+M-x package-install-file RET ~/swsw.el RET
-$ git clone 'https://git.sr.ht/~dsemy/swsw'
+Usage:
-2. Load the package and enable the minor mode:
+Enable `swsw-mode' and (optionally) bind `swsw-select' to a key:
-;; vanilla
-(add-to-list 'load-path (locate-user-emacs-file "swsw"))
-(require 'swsw)
(swsw-mode)
+(define-key swsw-mode-map "C-x o" #'swsw-select)
+
+For use-package users:
-;; use-package
(use-package swsw
- :load-path "swsw/"
+ :demand ; :bind keyword causes loading to defer.
+ :bind
+ (:map swsw-mode-map
+ ("C-x o" . swsw-select))
:config
(swsw-mode))
-COPYRIGHT
+When swsw-mode is active:
+- A window ID is displayed using a mode line lighter or a display function (see
+ `swsw-display-function').
+- A single (predefined) character CHAR corresponds to the minibuffer (see
+ `swsw-minibuffer-id').
+- Window IDs are assigned to all windows on all frames (by default, see
+ `swsw-scope').
+
+C-x o RET ID (if bound) or M-x swsw-select RET ID switches focus to the window
+which corresponds to ID.
+
+You can customize `swsw-mode' using the customize interface:
+
+M-x customize-group RET swsw RET
+
+Copyright:
Copyright © 2020 Daniel Semyonov <cmstr@dsemy.com>
Licensed under GPLv3 or later.
diff --git a/swsw.el b/swsw.el
index a8f98e34f3..f0e71916d9 100644
--- a/swsw.el
+++ b/swsw.el
@@ -24,7 +24,7 @@
;;; Commentary:
;; swsw (simple window switching) provides a minor mode for switching
-;; windows using IDs assigned to them.
+;; to windows using IDs assigned to them automatically.
;;
;; Usage:
;;
@@ -33,18 +33,30 @@
;; (swsw-mode)
;; (define-key swsw-mode-map "C-x o" #'swsw-select)
;;
-;; You can customize `swsw-mode' using the customize interface:
-;;
-;; M-x customize-group RET swsw RET
-;;
;; For use-package users:
;;
;; (use-package swsw
+;; :demand ; :bind keyword causes loading to defer.
;; :bind
;; (:map swsw-mode-map
;; ("C-x o" . swsw-select))
;; :config
;; (swsw-mode))
+;;
+;; When swsw-mode is active:
+;; - A window ID is displayed using a mode line lighter or a display function
(see
+;; `swsw-display-function').
+;; - A single (predefined) character CHAR corresponds to the minibuffer (see
+;; `swsw-minibuffer-id').
+;; - Window IDs are assigned to all windows on all frames (by default, see
+;; `swsw-scope').
+;;
+;; C-x o RET ID (if bound) or M-x swsw-select RET ID switches focus to the
window
+;; which corresponds to ID.
+;;
+;; You can customize `swsw-mode' using the customize interface:
+;;
+;; M-x customize-group RET swsw RET
;;; Code:
- [elpa] externals/window-commander b5ebc9e08a 106/170: Use lambdas for ':set' functions, (continued)
- [elpa] externals/window-commander b5ebc9e08a 106/170: Use lambdas for ':set' functions, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander b2dcc60dab 136/170: ; Explain 'swsw--id-counter' more thoroughly, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander bbe31e347c 146/170: ; Bump version to 2.1.1, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 0d361df85e 148/170: ; Use 'kbd' notation in the README, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander c5f85632d9 156/170: Rework display functions, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander ae9876b2c6 163/170: Rename to Window Commander and simplify project, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 43d93402a8 167/170: ; Small fix, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander ff30079d41 075/170: ; Remove trailing period in a tag string of 'swsw-scope', ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 07f26210e8 086/170: ; Add 'swsw-delete' fix to the NEWS file, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 8b74678bcf 028/170: * swsw.el (swsw-display-function): Avoid byte compilation warning, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 54ca1baa14 030/170: ; Restructure README and commentary,
ELPA Syncer <=
- [elpa] externals/window-commander ebaa85abdd 031/170: ; Add a missing word to a comment, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 6695f8858e 034/170: ; Use '; ' for inline comment instead of '; ; ', ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander b5b05358a3 035/170: ; Add a news file containing a detailed change log, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander b6277eb31f 037/170: ; Indicate that version 1.1 is still in development in the NEWS file, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 1a5ce9c559 038/170: ; Add binding 'C-x o' to 'swsw-select' in 'swsw-mode-map' to the NEWS, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 7a00ef3140 039/170: ; Small documentation fixes, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 3a9848deac 042/170: Add an Info node for the package, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 74124620af 048/170: ; Add brief usage information to the docstring of 'swsw-mode', ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 5b0f4657cc 052/170: ; Simplify build process, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander f9f64e0559 060/170: * swsw.el (swsw--get-id-length): Return 1 when there is one window tracked, ELPA Syncer, 2023/06/28