summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Parri <simonparri@ganzeria.com>2025-08-06 08:26:15 -0500
committerSimon Parri <simonparri@ganzeria.com>2025-08-06 08:26:15 -0500
commite31029ae8423c1c9582c2ecf18c0b96fe741141f (patch)
tree6fcc4d6463b769248a892739b94cbf73ccd45d42
parenteea7ad2015641af5b8281589bd269b71d951fe6a (diff)
downloaddotfiles-e31029ae8423c1c9582c2ecf18c0b96fe741141f.tar.gz
dotfiles-e31029ae8423c1c9582c2ecf18c0b96fe741141f.zip
Emacs/empv: Make toggling window visibility work on non-video tracks
-rw-r--r--common/.emacs.d/init.el13
1 files changed, 11 insertions, 2 deletions
diff --git a/common/.emacs.d/init.el b/common/.emacs.d/init.el
index c14a861..ef2e99e 100644
--- a/common/.emacs.d/init.el
+++ b/common/.emacs.d/init.el
@@ -2995,7 +2995,8 @@ instead."
empv-playlist-dir (xdg-user-dir "MUSIC")
empv-base-directory empv-playlist-dir
empv-use-consult-if-possible nil
- empv-invidious-instance "https://yewtu.be/api/v1")
+ empv-invidious-instance "https://yewtu.be/api/v1"
+ empv-mpv-args (cl-delete "--no-video" empv-mpv-args :test #'equal))
(defvar empv-mode-line-format
(concat " " (propertize "%t" 'face 'bold) " " (propertize "[%p]" 'face 'italic)))
@@ -3040,7 +3041,15 @@ instead."
(setq empv-mode-line-timer
(run-at-time t 2 #'empv-mode-line-update)))
(delq 'empv-mode-line-string global-mode-string)
- (cancel-timer empv-mode-line-timer))))
+ (cancel-timer empv-mode-line-timer)))
+
+ :config/el-patch
+ (defun empv-toggle-video ()
+ "Toggle the video display.
+You can press \"_\" to hide it again when you are focused on
+MPV."
+ (interactive)
+ (empv--cmd 'cycle (el-patch-swap 'video 'force-window))))
(use-package yeetube
:config