johanvts / emacs-fireplace

A cozy fireplace for emacs.
732 stars 21 forks source link

Running fireplace as startup buffer #27

Closed Swarthon closed 6 years ago

Swarthon commented 6 years ago

Hi, I'm trying to run fireplace as a startup buffer. In order to do that, I've set the initial-buffer-choice variable to 'fireplace using

(setq inhibit-startup-screen t)
(setq initial-buffer-choice 'fireplace)

in my .emacs file

But when I start Emacs, its shows as an error : Wrong number of arguments: (1 . 1), 0

The same occurs when running it in a .el file Is it a fireplace error or am I making a mistake ?

Thanks for your help

Swarthon commented 6 years ago

I've managed to make it work by using a custom function

(defun run-fireplace () "Run fireplace"
       (command-execute 'fireplace)
       (get-buffer "*fireplace*"))
(setq inhibit-startup-screen t)
(setq initial-buffer-choice 'run-fireplace)