(draft) Adds option to always start in the background & hide modeline in DB buffer #183
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
anddashboard-hide-modeline
, todashboard-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 thecommand-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.