浏览代码

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

Colin Powell 5 年之前
父节点
当前提交
024afb7d53
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      emacs/.config/doom/config.el

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

@@ -175,3 +175,10 @@
 (load! "+mail")    ;; Mail stuff
 (load! "+mail")    ;; Mail stuff
 (load! "+ranger")
 (load! "+ranger")
 (load! "+wttrin")     ;; Weather config
 (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)))