From 2c04241f38a684598d454db9e5ec4416cc2f3e6d Mon Sep 17 00:00:00 2001 From: Simon Parri Date: Fri, 25 Jul 2025 22:23:03 +0200 Subject: Emacs: Make sure empv commands are bound when dired is first loaded --- common/.emacs.d/init.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'common') diff --git a/common/.emacs.d/init.el b/common/.emacs.d/init.el index aeaf99f..fcc6ad4 100644 --- a/common/.emacs.d/init.el +++ b/common/.emacs.d/init.el @@ -2986,17 +2986,16 @@ instead." (use-package empv :if (group-enabled-p 'music) :ensure t + :init + (with-eval-after-load 'dired + (keymap-set dired-mode-map "e" 'empv-play-media-at-point)) :config - (require 'dired) - (setq 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") - (keymap-set dired-mode-map "e" 'empv-play-media-at-point) - (defvar empv-mode-line-format (concat " " (propertize "%t" 'face 'bold) " " (propertize "[%p]" 'face 'italic))) -- cgit v1.2.3