[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swsw 54ca1baa14 030/146: ; Restructure README and commenta
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swsw 54ca1baa14 030/146: ; Restructure README and commentary |
Date: |
Wed, 25 May 2022 02:59:41 -0400 (EDT) |
branch: elpa/swsw
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:
- [nongnu] elpa/swsw 8febd864f9 085/146: ; Remove old reference to 'swsw-minibuffer-id', (continued)
- [nongnu] elpa/swsw 8febd864f9 085/146: ; Remove old reference to 'swsw-minibuffer-id', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 03747300a3 082/146: ; Add missing 'Window commands' entry to the detailed node listing, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw ff30079d41 075/146: ; Remove trailing period in a tag string of 'swsw-scope', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 2b43f66c82 145/146: ; Use 'kbd' instead of vector notation for 'define-key' example, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 5d1ea190ab 011/146: Only display a mode line lighter for tracked windows, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw bbe31e347c 146/146: ; Bump version to 2.1.1, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw b10ff98f3d 079/146: Add a window deletion command, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw ddfed7b727 012/146: * swsw.el (swsw-mode): Add a sparse keymap., ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 8b74678bcf 028/146: * swsw.el (swsw-display-function): Avoid byte compilation warning, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 2d2edca2c3 029/146: ; Add 'Usage:' section to the commentary, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 54ca1baa14 030/146: ; Restructure README and commentary,
ELPA Syncer <=
- [nongnu] elpa/swsw c0f5277538 045/146: ; Update the URL property of the package, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw b3f6cee6af 068/146: ; Unify information in the README and commentary, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw ca14f1d0c5 107/146: Mark some variables as risky local variables, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 57e9986858 141/146: ; Small documentation fixes, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 3882424448 099/146: ; Bump to version 2.0.2, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw ccab7194a7 133/146: Use 'custom-initialize-changed' to initialize some user options, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 5446df0f3e 059/146: * swsw.el (swsw--get-id-length): Fix the calculation of the ID length, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw af99790728 123/146: ; Various cosmetic changes to NEWS, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw af63260c0e 134/146: ; Update package URL to https://dsemy.com/projects/swsw, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw ff38ec1c24 124/146: ; Bump required Emacs version to 27.1 due to 'window-state-change-hook', ELPA Syncer, 2022/05/25