]> code.delx.au - gnu-emacs-elpa/commitdiff
* ampc.el (ampc-mode-map): Add stop/next/previous menu items.
authorChristopher Schmidt <christopher@ch.ristopher.com>
Sat, 5 May 2012 21:52:47 +0000 (23:52 +0200)
committerChristopher Schmidt <christopher@ch.ristopher.com>
Sat, 5 May 2012 21:52:47 +0000 (23:52 +0200)
ampc.el

diff --git a/ampc.el b/ampc.el
index f4ddff87c2a885aec67fb629cc4327b2bd10f2d7..4bc8267812029fe9dcdee3f22e0ddab07c81f0c0 100644 (file)
--- a/ampc.el
+++ b/ampc.el
@@ -450,6 +450,11 @@ all the time!"
     ["Pause" ampc-toggle-play
      :visible (and ampc-status
                    (equal (cdr (assq 'state ampc-status)) "play"))]
+    ["Stop" (lambda () (interactive) (ampc-toggle-play 4))
+     :visible (and ampc-status
+                   (equal (cdr (assq 'state ampc-status)) "play"))]
+    ["Next" ampc-next]
+    ["Previous" ampc-previous]
     "--"
     ["Clear playlist" ampc-clear]
     ["Shuffle playlist" ampc-shuffle]