[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/window-commander 04ace20d03 063/170: ; Fix indentation
From: |
ELPA Syncer |
Subject: |
[elpa] externals/window-commander 04ace20d03 063/170: ; Fix indentation and compact structure in some places |
Date: |
Wed, 28 Jun 2023 19:00:27 -0400 (EDT) |
branch: externals/window-commander
commit 04ace20d03b0b370272d221d495a43c41fb125cd
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>
; Fix indentation and compact structure in some places
---
swsw.el | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/swsw.el b/swsw.el
index 2751613993..a41d48d748 100644
--- a/swsw.el
+++ b/swsw.el
@@ -130,11 +130,8 @@ If set to ‘lighter’, use the mode line lighter of
‘swsw-mode’."
"Return the current length of a window ID."
(let ((windows (length (window-list-1 nil nil (swsw--get-scope)))))
;; If there is only one window, return 1.
- (if (= windows 1)
- 1
- (ceiling (log
- windows
- (length swsw-id-chars))))))
+ (if (= windows 1) 1
+ (ceiling (log windows (length swsw-id-chars))))))
(defvar swsw--id-counter nil
"Counter which determines the next possible ID.")
@@ -200,7 +197,7 @@ This command is intended to be used only when ‘swsw-mode’
is enabled."
(swsw--read-id (swsw--get-id-length))
(run-hooks 'swsw-after-select-hook))))
(let ((window (cdr (assoc id swsw-window-list))))
- (select-window (if window window (next-window)))))
+ (select-window (if window window (next-window)))))
;;;###autoload
(define-minor-mode swsw-mode
- [elpa] externals/window-commander b3f6cee6af 068/170: ; Unify information in the README and commentary, (continued)
- [elpa] externals/window-commander b3f6cee6af 068/170: ; Unify information in the README and commentary, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 5e77d34dfa 054/170: ; Modify installation section of the README file and Info node, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 185861a2e9 010/170: Use a lighter for 'swsw-mode', ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander c08a9b1e58 024/170: ; Fix a docstring, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 5addab5009 027/170: ; Fix installing swsw.el as a package, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 2d2edca2c3 029/170: ; Add 'Usage:' section to the commentary, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander a5b25e075f 032/170: Allow setting the scope to the selected frame, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 2002152fb7 023/170: ; Add .gitignore file, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 5937f8bc6e 043/170: ; Update .gitignore to ignore some build artifacts, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander d5ab98b9db 044/170: ; Bump version to 1.1, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 04ace20d03 063/170: ; Fix indentation and compact structure in some places,
ELPA Syncer <=
- [elpa] externals/window-commander eba70478e0 065/170: Update window information after 'swsw-scope' is customized, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander d195e574c0 066/170: ; Add latest changes to the news file, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander cf70d1d22c 071/170: ; Make an if statement more readable, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander b3e00165f2 073/170: ; Add latest changes to the NEWS file and indicate that 1.1.2 is WIP, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 522bfb2da0 074/170: ; Add versioning scheme information to the NEWS file, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 3261f323e9 077/170: ; Bump version to 1.1.2, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander ccf0d780a5 078/170: Add support for custom window commands, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander b10ff98f3d 079/170: Add a window deletion command, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 51fcc776bd 081/170: ; Reorganize swsw.el, ELPA Syncer, 2023/06/28
- [elpa] externals/window-commander 69dfbd08de 083/170: ; Bump version to 2.0, ELPA Syncer, 2023/06/28