[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/listen a6c67deeba 049/103: Tidy
From: |
ELPA Syncer |
Subject: |
[elpa] externals/listen a6c67deeba 049/103: Tidy |
Date: |
Mon, 26 Feb 2024 12:59:28 -0500 (EST) |
branch: externals/listen
commit a6c67deeba58a0deb19519965b11203ddc7b034b
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>
Tidy
---
listen.el | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/listen.el b/listen.el
index 648662914e..d66bf362b4 100755
--- a/listen.el
+++ b/listen.el
@@ -47,6 +47,17 @@
"Default music directory."
:type 'directory)
+(defcustom listen-lighter-title-max-length 15
+ "Truncate track titles to this many characters.
+Used for mode line lighter and transient menu."
+ :type 'natnum)
+
+(defcustom listen-lighter-format 'remaining
+ "Time elapsed/remaining format.
+For the currently playing track."
+ :type '(choice (const :tag "Time remaining" remaining)
+ (const :tag "Time elapsed/total" elapsed)))
+
;;;; Commands
(defun listen-quit (player)
@@ -153,7 +164,7 @@ command with completion."
(when-let ((info (listen--info listen-player)))
(format "%s: %s" (alist-get "artist" info nil nil #'equal)
(truncate-string-to-width (alist-get "title" info
nil nil #'equal)
-
listen-mode-title-max-length nil nil t))))
+
listen-lighter-title-max-length nil nil t))))
(format-status ()
(pcase (listen--status listen-player)
("playing" "▶")
@@ -173,16 +184,6 @@ command with completion."
") ")
'("■ ")))))
-(defcustom listen-mode-title-max-length 15
- "Truncate track titles to this many characters."
- :type 'natnum)
-
-(defcustom listen-lighter-format 'remaining
- "Time elapsed/remaining format.
-For the currently playing track."
- :type '(choice (const :tag "Time remaining" remaining)
- (const :tag "Time elapsed/total" elapsed)))
-
(declare-function listen-queue-play "listen-queue")
(declare-function listen-queue-next-track "listen-queue")
(defun listen-mode--update (&rest _ignore)
- [elpa] externals/listen 4390995834 031/103: SPC to pause in queue, (continued)
- [elpa] externals/listen 4390995834 031/103: SPC to pause in queue, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 8d3706c4c3 033/103: Rename commands, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 5a6a99d00d 016/103: Autoloads, menu, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 6ade160cf6 037/103: Tidy, ELPA Syncer, 2024/02/26
- [elpa] externals/listen b21a0ee496 039/103: Tidy, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 7d61d5853a 040/103: Tidy, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 8d030200cd 052/103: Add README, ELPA Syncer, 2024/02/26
- [elpa] externals/listen f7fcff0c32 047/103: Fixes, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 2b5d86b377 050/103: Commentary, etc., ELPA Syncer, 2024/02/26
- [elpa] externals/listen 06c78bdfe3 044/103: Fix, ELPA Syncer, 2024/02/26
- [elpa] externals/listen a6c67deeba 049/103: Tidy,
ELPA Syncer <=
- [elpa] externals/listen 86e6677c6b 056/103: Fix, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 4fac16dd51 057/103: Docs, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 9ce822e09c 059/103: Add: basic library view, ELPA Syncer, 2024/02/26
- [elpa] externals/listen d4723c91f0 060/103: Library improvements, ELPA Syncer, 2024/02/26
- [elpa] externals/listen f97086d0fc 080/103: Change: (listen-queue) Headers for first 2 columns, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 317732714c 083/103: Fix: (listen-queue-next-track) Also test filename, ELPA Syncer, 2024/02/26
- [elpa] externals/listen 8bad3e92dc 087/103: Meta: v0.3-pre, ELPA Syncer, 2024/02/26
- [elpa] externals/listen a9e77ab677 101/103: Fix: (listen-queue-play) Add autoload, ELPA Syncer, 2024/02/26
- [elpa] externals/listen f9b0fe8b7d 102/103: Change: Use prin1 for filenames, ELPA Syncer, 2024/02/26
- [elpa] externals/listen d85ba4038e 097/103: Comment: Add TODO, ELPA Syncer, 2024/02/26