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

Fixed hardcoding of mu4e-dashboard-file in mu4e-dashboard-parse-keymap and added mu4e-dashboard function #44

Merged
merged 2 commits into from
Jul 16, 2022

Conversation

dmgerman
Copy link

Currently, mu4e-dashboard-mode operates in the current file, but the keymaps are always
loaded from the file mu4e-dashboard-file (it silently does nothing if the file does
not exist)

This means that, when the current file is not mu4e-dashboard-file, the file's keybindings
are ignored. This bug is fixed in this commit.

Also, a new function is added: mu4e-dashboard, that will visit mu4e-dashboard-file and
run mu4e-dashboard-mode on it. It will generate an error if the file does not exist.

Currently, mu4e-dashboard-mode operates in the current file, but the keymaps are always
loaded from the file mu4e-dashboard-file (it silently does nothing if the file does
not exist)

This means that, when the current file is not mu4e-dashboard-file, the file's keybindings
are ignored. This bug is fixed in this commit.

Also, a new function is added: mu4e-dashboard, that will visit mu4e-dashboard-file and
run mu4e-dashboard-mode on it. It will generate an error if the file does not exist.
@dmgerman
Copy link
Author

I found a weird bug. return is redefined in all org files. I have to fix that.

@rougier what do you think about having the function mu4e-dashboard?

Simply moved the local-set-key after the keymap has been redefined
@dmgerman
Copy link
Author

I added a commit that fixes setting in all org-mode buffers. It is now only done in the current buffer.

@rougier
Copy link
Owner

rougier commented Jul 16, 2022

Looks good to me. In fact, I've a mu4e-dashboard function in my own configuration but it makes sense to have a minimal one with the dashboard.

@rougier rougier merged commit 11ad4f5 into rougier:main Jul 16, 2022
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

3 participants