From 4b6fc89a24436e29b019f3c9e0a5acd3c14c60c3 Mon Sep 17 00:00:00 2001 From: toctan <tianjin.sc@gmail.com> Date: Sun, 19 May 2013 19:16:43 +0800 Subject: [PATCH 1/2] Do not show the tip if cursor is in the minibuffer --- core/prelude-core.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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'. From 0e744f18f67a3969013b93faba90e623b938898c Mon Sep 17 00:00:00 2001 From: toctan <tianjin.sc@gmail.com> Date: Mon, 20 May 2013 12:20:25 +0800 Subject: [PATCH 2/2] Add session* to .gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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*