diff --git a/.gitignore b/.gitignore index 12fa4ba..2f82543 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,5 @@ places .smex-items savefile/ /prelude-modules.el -projectile-bookmarks.eld \ No newline at end of file +projectile-bookmarks.eld +session* diff --git a/core/prelude-core.el b/core/prelude-core.el index 5fe8cc2..87d5721 100644 --- a/core/prelude-core.el +++ b/core/prelude-core.el @@ -352,10 +352,11 @@ Doesn't mess with special buffers." (defun prelude-tip-of-the-day () "Display a random entry from `prelude-tips'." (interactive) - ;; pick a new random seed - (random t) - (message - (concat "Prelude tip: " (nth (random (length prelude-tips)) prelude-tips)))) + (unless (window-minibuffer-p) + ;; pick a new random seed + (random t) + (message + (concat "Prelude tip: " (nth (random (length prelude-tips)) prelude-tips))))) (defun prelude-eval-after-init (form) "Add `(lambda () FORM)' to `after-init-hook'.