summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2023-07-20 22:32:49 +0800
committerJSDurand <mmemmew@gmail.com>2023-07-20 22:32:49 +0800
commit3cdfc7c2c7d25df9824bebf75ba1271ce3995789 (patch)
treeedce4a7dbeb85aed32c6deb5ecb55ff8f9307a03
parent12c9b43c6606a90e2891d7da12d0d48bccb4aeeb (diff)
dashboard: set the dashboard buffer to be non-modified
* dashboard.el (dashboard): Set the dashboard buffer as not modified. This is a minor issue, but I like it. :D
-rw-r--r--dashboard.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/dashboard.el b/dashboard.el
index ebbefde..9cca322 100644
--- a/dashboard.el
+++ b/dashboard.el
@@ -57,6 +57,7 @@ If FORCE is non-nil, re-gerenate the dashboard buffer."
dashboard-cat-text)))
(newline 5)
(insert (center-string-in-width "Dashboard" (window-body-width)))
+ (set-buffer-modified-p nil)
(read-only-mode 1)
(set 'mode-line-format '("%e" (:eval (modeline-format-dashboard))))
(set 'default-directory user-emacs-directory)