 (defun spotify-apple-player-previous-track ()
   (spotify-apple-command "previous track"))
 
-(defun spotify-apple-toggle-repeating ()
+(defun spotify-apple-toggle-repeat ()
   (spotify-apple-command "set repeating to not repeating"))
 
-(defun spotify-apple-toggle-shuffling ()
+(defun spotify-apple-toggle-shuffle ()
   (spotify-apple-command "set shuffling to not shuffling"))
 
 (defun spotify-apple-player-play-track (context-id)

  (interactive)
  (spotify-apply "shuffling-p"))

(defun spotify-toggle-shuffling ()
  "Sends a command to Spotify process to toggle the shuffling flag."
  (interactive)
  (spotify-apply "toggle-shuffling")
  (message "Spotify shuffling is %s"
           (if (spotify-shuffling-p) "on" "off")))



(defvar spotify-remote-mode-map
  (let ((map (make-sparse-keymap)))
    (define-key map (kbd "M-p M-s") 'spotify-toggle-shuffle)
    (define-key map (kbd "M-p M-r") 'spotify-toggle-repeat)
    (define-key map (kbd "M-p M-p") 'spotify-toggle-play)
    (define-key map (kbd "M-p M-,") 'spotify-previous-track)
    (define-key map (kbd "M-p M-.") 'spotify-next-track)
