summaryrefslogtreecommitdiff
path: root/common/.emacs.d/init.el
diff options
context:
space:
mode:
authorSimon Parri <simonparri@ganzeria.com>2025-07-25 22:23:03 +0200
committerSimon Parri <simonparri@ganzeria.com>2025-07-25 22:23:03 +0200
commit2c04241f38a684598d454db9e5ec4416cc2f3e6d (patch)
tree82005b38d4d901e50aa241a152e24513bdefb9da /common/.emacs.d/init.el
parent25fa26fda5a01baafcbd3beac112b4a65313aeab (diff)
downloaddotfiles-2c04241f38a684598d454db9e5ec4416cc2f3e6d.tar.gz
dotfiles-2c04241f38a684598d454db9e5ec4416cc2f3e6d.zip
Emacs: Make sure empv commands are bound when dired is first loaded
Diffstat (limited to 'common/.emacs.d/init.el')
-rw-r--r--common/.emacs.d/init.el7
1 files changed, 3 insertions, 4 deletions
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)))