TransWikia.com

Replace welcome screen (aka "splash" screen) with calendar?

Emacs Asked by Philip Kirkbride on December 19, 2021

I want to replace the welcome screen with the calendar.

I’ve tried adding (calendar) to my .emacs but it opens calendar in addition to the welcome screen not instead of it.


EDIT: I’m trying what is suggested by @Drew, I press M-x customize-option and then enter initial-buffer-choice. Which brings me here.

enter image description here

Would I enter the Calendar command on this page, or did something go wrong?

3 Answers

If you use org-agenda you can try the extension Emacs Dashboard. https://github.com/rakanalh/emacs-dashboard

Answered by msel on December 19, 2021

I hope so ...

  • You should append into ~/.emacs file, as a first line, next command:(setq inhibit-splash-screen t) ;; it'll disable splash screen
  • At the end of ~/.emacs join the next sequence:
    (let ((buffer-cal "*Calendar*"))
      ;;
      ;; next commands:
      ;;
      ;; create calendar and pass focus to it
      ;;
      (and
       (calendar) (bufferp (get-buffer buffer-cal))
       (switch-to-buffer buffer-cal)
       )
      (delete-other-windows)
    )
    

Answered by joe on December 19, 2021

You can customize option initial-buffer-choice (using M-x customize-option).

The value can be a buffer name (the name of your calendar buffer, if it exists - e.g. "*Calendar*") or a function that returns a buffer. The buffer is displayed in place of the welcome (aka "splash") screen.

It is of course up to you to ensure that when you start up Emacs the necessary function has been defined or the named buffer has been created.

See the Emacs manual, node Entering Emacs.

Answered by Drew on December 19, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP