~breatheoutbreathein/emacs-simple-mpc-breatheoutbreathein

88c03606edc0339bb4289a9f8f79aa0608af218d — Joseph Turner 1 year, 10 months ago ea010c0
Add simple-mpc-repeat-status
1 files changed, 8 insertions(+), 0 deletions(-)

M simple-mpc-utils.el
M simple-mpc-utils.el => simple-mpc-utils.el +8 -0
@@ 104,6 104,14 @@ output as a string."
    (mark-sexp)
    (buffer-substring (mark) (point))))

(defun simple-mpc-repeat-status ()
  "Return repeat status."
  (with-temp-buffer
    (simple-mpc-call-mpc t "status")
    (search-backward "repeat")
    (mark-word 2)
    (buffer-substring (mark) (point))))

(defun simple-mpc-goto-line (line-number)
  "Go to beginning of line LINE-NUMBER.