From 0e3fa97736a6b2f9bb0ea3ca425481fae8907c60 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 20 Feb 2018 15:45:35 -0500 Subject: [PATCH] Add config for fortune-cookie --- .emacs.d/init.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 878d787..62514aa 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -625,6 +625,16 @@ (interactive) (shell-command "ssh ag 'mbsync inboxes && afew -tn' && muchsync ag"))) +(use-package fortune-cookie + :config + ; change message every time scratch buffer created + (setq initial-major-mode + (lambda () + (setq initial-scratch-message + (concat (fortune-cookie-comment + (fortune-cookie) fortune-cookie-comment-start) "\n\n")) + (lisp-interaction-mode)))) + ;;; Local Variables (add-to-list 'safe-local-eval-forms '(outline-hide-body)) ;; Local Variables: