diff options
author | Yuchen Pei <id@ypei.org> | 2025-01-21 09:44:48 +1100 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2025-01-21 09:44:48 +1100 |
commit | b2a862b56835a63245e4872a82e4da455f2523dc (patch) | |
tree | 09c7e2744f4ec181eee898cdf9ca03ff1441c6a1 /emacs/.emacs.d/lisp/my/my-emms.el | |
parent | b167fc6a8a97eef6555160be1584a55f7031382c (diff) |
[emacs] small fixes to emms and fediorg/exitter
emms: reset score delta to 1 if last command is not
emms-playlist-mode-play-smart
fediorg: show thumbnails only when they are legit image files
Diffstat (limited to 'emacs/.emacs.d/lisp/my/my-emms.el')
-rw-r--r-- | emacs/.emacs.d/lisp/my/my-emms.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/.emacs.d/lisp/my/my-emms.el b/emacs/.emacs.d/lisp/my/my-emms.el index 6e8cf2a..e6fb0e2 100644 --- a/emacs/.emacs.d/lisp/my/my-emms.el +++ b/emacs/.emacs.d/lisp/my/my-emms.el @@ -508,7 +508,8 @@ character." If the last command is `emms-playlist-mode-play-smart', then set `my-emms-score-delta' to 2." - (when (eq last-command 'emms-playlist-mode-play-smart) + (if (not (eq last-command 'emms-playlist-mode-play-smart)) + (setq my-emms-score-delta 1) (setq my-emms-score-delta 2) (setq last-command nil)) ) |