From: khamidou Date: Tue, 14 Apr 2009 18:00:43 +0000 (+0200) Subject: added a function to display a random message in *scratch* X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=83b5dec0b8ec4c57daf28759b877029c8b709952;p=config-files.git added a function to display a random message in *scratch* --- 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))