diff options
Diffstat (limited to 'common/.emacs.d')
-rw-r--r-- | common/.emacs.d/init.el | 13 |
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 |