aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--perspective.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/perspective.el b/perspective.el
index 62ad179..a0f0427 100644
--- a/perspective.el
+++ b/perspective.el
@@ -312,7 +312,12 @@ Create it if the current perspective doesn't have one yet."
(when (and (zerop (buffer-size))
initial-scratch-message)
(insert (substitute-command-keys initial-scratch-message))
- (set-buffer-modified-p nil))))
+ (set-buffer-modified-p nil))
+ ;; Turn flymake off to prevent the annoying error in the
+ ;; minibuffer
+ (when (and (require 'flymake nil t)
+ (boundp flymake-mode))
+ (flymake-mode -1))))
scratch-buffer))
(defun persp-switch-to-scratch-buffer ()