Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I change the emacs fancy-startup-text?

Tags:

emacs

i would like to change the emacs fancy-startup-text (the splash screen that shows up, i know how to close it but not how to replace it with my own). idea is to build my own startup page that fetches some things from the web (news items, sport fixtures, word of the day etc) for emacs.

like image 410
dillisingh Avatar asked Apr 03 '10 07:04

dillisingh


3 Answers

You can use a startup hook to do whatever you want after Emacs starts up:

(add-hook 'emacs-startup-hook 'my-startup-fcn)
(defun my-startup-fcn ()
  "do fancy things"
  (let ((my-buffer (get-buffer-create "my-buffer")))
    (with-current-buffer my-buffer
      ;; this is what you customize
      (insert "some stuff\nmore stuff"))
    (switch-to-buffer my-buffer)))
like image 90
Trey Jackson Avatar answered Oct 03 '22 17:10

Trey Jackson


User Option: initial-buffer-choice

This variable, if non-nil, determines a file or buffer for Emacs to display after starting up, instead of the startup screen. If its value is t, Emacs displays the ‘scratch’ buffer. If its value is a string, that specifies the name of a file for Emacs to visit.

– Emacs Manual

like image 32
miku Avatar answered Oct 03 '22 15:10

miku


In your .emacs file, write code that sets the initial-scratch-message variable, which controls the text that appears in the *scratch* buffer.

like image 34
Etaoin Avatar answered Oct 03 '22 17:10

Etaoin