Move point to the first section#387
Open
mmahmoudian wants to merge 1 commit intoemacs-dashboard:masterfrom
Open
Move point to the first section#387mmahmoudian wants to merge 1 commit intoemacs-dashboard:masterfrom
mmahmoudian wants to merge 1 commit intoemacs-dashboard:masterfrom
Conversation
Member
|
I would suggest to add a defcustom variable for this behavior, WDYT? |
|
I now have this configuration: (use-package dashboard
...
:hook
(dashboard-mode . (lambda ()
(run-with-timer 0 nil #'dashboard-jump-to-recents))))so having the proposed functionality would be helpful. |
Contributor
|
Hi, I think the solution in this comment is the right one: (add-hook 'dashboard-after-initialize-hook 'dashboard-jump-to-recents)If you want to move to the first item in the first section then: (add-hook 'dashboard-after-initialize-hook
(lambda ()
(dashboard-goto-section-by-index 1)
(widget-forward 1)))Maybe we need another hooks that run before and after insert the startupify |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This addresses #379
I'm very new to emacs and elisp, therefore although this change is very small, but still it needs to be checked.
If this works out and is up to your standard, I will create another PR for another issue that I have managed to solve on my end.
Thanks.