LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   emacs initial *scratch* message (https://www.linuxquestions.org/questions/linux-software-2/emacs-initial-%2Ascratch%2A-message-4175411883/)

CollieJim 06-17-2012 03:10 AM

emacs initial *scratch* message
 
I would like to get rid of the initial message in *scratch*. It's a nuisance having to delete it.

The message appears to be in startup.el, but it is ignored. The real message is hard-coded in the binary /usr/bin/emacs-23.4.

I tried putting code in .emacs to remove the message, but that did not work. Nothing changed. I used
Code:

(set-buffer "*scratch*")
(mark-whole-buffer)
(kill-region (point) (mark))

This works as a separate function, but not in my .emacs file.

rknichols 06-17-2012 07:01 AM

In emacs, under "Options" select "Customize Emacs", then "Settings Matching Regexp...". Enter the word "scratch" as the regexp, and you'll find the setting for "Initial Scratch Message".

CollieJim 06-17-2012 09:33 AM

Thanks. I normally do not have the menu bar displayed, so that had not occurred to me.


All times are GMT -5. The time now is 04:08 PM.