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

(draft) Adds option to always start in the background & hide modeline in DB buffer #183

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

zjp
Copy link
Contributor

@zjp zjp commented Aug 19, 2019

I'm still working on using magit effectively, but I have works in progress that may be of interest.

This adds two parameters, dashboard-always-start and dashboard-hide-modeline, to dashboard-setup-startup-hook.

If dashboard-always-start is enabled then the dashboard buffer will be created even when Emacs is called on a file from the command line, but Emacs will immediately switch to the file's buffer after initializing the dashboard without further input from the user. I'm not the most familiar with how Emacs names its buffers, so it's possible a certain configuration could break this. The current method chops the command-line-args list down to just the filename and attempts to switch to the buffer with that name. It makes it more IDE like, for those who would want that. Failed tests are due to the length of the line.

If dashboard-hide-modeline is enabled then the modeline will disappear from the dashboard but not other buffers. It results in a cleaner look overall, but unfortunately only temporarily. Occasionally Emacs does something to put it back, for example starting treemacs or asking the user to accept local variables in elisp files. I'm still looking at how to make it hide the modeline again automatically. One interesting thing is that hiccups that bring the modeline back for the dashboard don't seem to do the same for treemacs.

…-mode (hiding line numbers in the dashboard by default)
…ser chooses, as well as the option to hide the modeline in the dashboard buffer.
@zjp zjp force-pushed the optional_always_start branch 2 times, most recently from 05258f9 to 2203284 Compare August 23, 2019 04:23
…resh-buffer; need to figure out how to make it go away automatically when Emacs calls it back but now there's a way to get it to go away again manually.
@zjp zjp changed the title Adds option to always start in the background & hide modeline in DB buffer (draft) Adds option to always start in the background & hide modeline in DB buffer Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant