aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Neidhardt <ambrevar@gmail.com>2017-12-29 22:01:32 +0100
committerPierre Neidhardt <ambrevar@gmail.com>2017-12-29 22:01:32 +0100
commit1ba1707f398b541baee516a9314b1ae1cc2f5bae (patch)
tree06f0754ad52053c4ba306f5035f33fc3e4991e67
parent5650f6bbcd05e9759193342a3004af4de252765c (diff)
emms-browser: Add mode hook
-rw-r--r--lisp/emms-browser.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/emms-browser.el b/lisp/emms-browser.el
index 12d3411..1f4981a 100644
--- a/lisp/emms-browser.el
+++ b/lisp/emms-browser.el
@@ -295,6 +295,9 @@
;; Variables and configuration
;; --------------------------------------------------
+(defvar emms-browser-mode-hook nil
+ "Emms browser mode hook.")
+
(defgroup emms-browser nil
"*The Emacs Multimedia System browser"
:prefix "emms-browser-"
@@ -553,7 +556,9 @@ example function is `emms-browse-by-artist'."
(setq buffer-read-only t)
(unless no-update
- (setq emms-browser-buffer (current-buffer))))
+ (setq emms-browser-buffer (current-buffer)))
+
+ (run-hooks 'emms-browser-mode-hook))
(defun emms-browser-new-buffer ()
"Create a new browser buffer, and switch to it."