2

I'm trying to find where the contents of the *GNU Emacs* buffer, aka fancy startup screen, are located on my hard drive.

When I M-x eval-expression buffer-file-name to find the file of the current buffer it returns nil. It says in the docs for buffer-file-name:

If buffer is not visiting any file, buffer-file-name returns nil.

so this is expected.

If it is not a file then where is this text coming from? I checked the source code at https://github.com/emacs-mirror/emacs/tree/master/doc but I didn't see anything.

  • The reason I want to know is that I want to open the file in a different editor. – Nate Feb 20 '18 at 7:18
1

The text displayed on the startup screen is stored in the fancy-startup-text constant. You can find it using describe-variable. There's also the function fancy-startup-screen, which actually displays it.

  • I found that fancy-startup-text is a variable defined in ‘startup.el’. So it's not a stand-alone file in the emacs source code? – Nate Feb 20 '18 at 7:29
  • Indeed. It's just one of the things in startup.el. Considering the splash screen has images and clickable links, a basic format wouldn't suffice, and a separate file makes little sense. – DoMiNeLa10 Feb 20 '18 at 13:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.