From 83b5dec0b8ec4c57daf28759b877029c8b709952 Mon Sep 17 00:00:00 2001 From: khamidou Date: Tue, 14 Apr 2009 20:00:43 +0200 Subject: [PATCH] added a function to display a random message in *scratch* --- .emacs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.emacs b/.emacs index e835520..04585c8 100755 --- a/.emacs +++ b/.emacs @@ -19,8 +19,10 @@ (setq inhibit-startup-message t) ; Add a message coming from the output of fortune in *scratch* (save-current-buffer + (emacs-lisp-mode) (set-buffer "*scratch*") - (call-process "fortune" nil (current-buffer))) + (call-process "fortune" nil (current-buffer)) + (comment-region (point-min) (point-max))) (eval-after-load "dabbrev" '(defalias 'dabbrev-expand 'hippie-expand)) -- 2.43.0