Merge pull request #321 from toctan/master
Do not show the tip if the cursor is in the minibuffer window
This commit is contained in:
commit
ca4ae2e4f8
2 changed files with 7 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -17,3 +17,4 @@ places
|
|||
savefile/
|
||||
/prelude-modules.el
|
||||
projectile-bookmarks.eld
|
||||
session*
|
||||
|
|
|
@ -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'.
|
||||
|
|
Loading…
Reference in a new issue