diff options
-rw-r--r-- | emms-browser.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/emms-browser.el b/emms-browser.el index f4c5d5a..9cc2a3d 100644 --- a/emms-browser.el +++ b/emms-browser.el @@ -163,6 +163,7 @@ Use nil for no sorting." (set-keymap-parent map text-mode-map) (define-key map (kbd "q") 'emms-browser-bury-buffer) (define-key map (kbd "/") 'emms-isearch-buffer) + (define-key map (kbd "?") 'emms-browser-goto-random) (define-key map (kbd "?") 'describe-mode) (define-key map (kbd "C-/") 'emms-playlist-mode-undo) (define-key map (kbd "SPC") 'emms-browser-toggle-subitems) @@ -1122,5 +1123,9 @@ included." (interactive) (emms-browser-search '(info-artist info-title info-album))) +(defun emms-browser-goto-random () + (interactive) + (goto-line (random (count-lines (point-min) (point-max))))) + (provide 'emms-browser) ;;; emms-browser.el ends here |