Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to kill *scratch* when I start emacs #248

Closed
shanyouli opened this issue Nov 4, 2019 · 1 comment
Closed

Unable to kill *scratch* when I start emacs #248

shanyouli opened this issue Nov 4, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@shanyouli
Copy link

Describe
"*scratch*" buffer seems to have to exist if you want doom-modeline to work correctly.
When I initialize the emacs to execute (kill-buffer "scratch"), start doom-modeline, I will get an error.

Funcall-interactively: No buffer named *scratch*

The minimum profile is

;; No display `*scratch*'
(defun remove-scratch-buffer ()
  (if (get-buffer "*scratch*")
      (kill-buffer "*scratch*")))

(add-hook 'after-change-major-mode-hook #'remove-scratch-buffer)

(require 'package)
(unless (package-installed-p 'doom-modeline)
  (package-refresh-contents)
  (package-install 'doom-modeline))
(package-initialize)
(require 'doom-modeline)
(doom-modeline-mode)
@seagle0128
Copy link
Owner

seagle0128 commented Nov 4, 2019

True. doom-modeline will set mode-line for the *scratch buffer, which is created by default. I didn't realize this buffer would be deleted by users. Let me think how to fix it.

@seagle0128 seagle0128 added the bug Something isn't working label Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants