aboutsummaryrefslogtreecommitdiff
path: root/lisp/emms-history.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/emms-history.el')
-rw-r--r--lisp/emms-history.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emms-history.el b/lisp/emms-history.el
index feba6c7..4d3238b 100644
--- a/lisp/emms-history.el
+++ b/lisp/emms-history.el
@@ -103,7 +103,8 @@ Emacs."
(insert "\n)")
(write-file emms-history-file))))))
-(add-hook 'kill-emacs-hook 'emms-history-save)
+(unless noninteractive
+ (add-hook 'kill-emacs-hook 'emms-history-save))
(defun emms-history-load ()
"Restore all playlists in `emms-history-file'."