Browse Source

Re-add missing play at point function for mpdel #emacs

Colin Powell 5 years ago
parent
commit
024afb7d53
1 changed files with 7 additions and 0 deletions
  1. 7 0
      emacs/.config/doom/config.el

+ 7 - 0
emacs/.config/doom/config.el

@@ -175,3 +175,10 @@
 (load! "+mail")    ;; Mail stuff
 (load! "+ranger")
 (load! "+wttrin")     ;; Weather config
+
+(defun mpdel-playlist-play ()
+  "Start playing the song at point."
+  (interactive)
+  (if (derived-mode-p 'mpdel-playlist-current-playlist-mode)
+      (libmpdel-play-song (navigel-entity-at-point))
+    (mpdel-core-insert-current-playlist)))