Giter Club home page Giter Club logo

Comments (7)

rougier avatar rougier commented on August 18, 2024

Stupid question but are you in "mu4e-dashboard-mode"?

from mu4e-dashboard.

carwin avatar carwin commented on August 18, 2024

Yep, I sure was - I tried going back and forth to see if I could trigger some kind of error but the Message log didn't have anything interesting.

I'll spin it up with Doom or one of the other pre-configs and see if that changes anything for me.

from mu4e-dashboard.

rougier avatar rougier commented on August 18, 2024

Can you try a manual mu4e-dahsboard-update to see what happens?

from mu4e-dashboard.

dmgerman avatar dmgerman commented on August 18, 2024

I think I found the reason for the keybinding problem!

It seems that when mu4e-dashboard-mode is called, mu4e-dashboard-parse-keymap does not process the current buffer. It seems to process ~/.emacs.d/mu4e-dashboard.el instead.

If the file does not exist, nothing is actually bound.

This is the culprit line:

   (with-current-buffer (find-file-noselect mu4e-dashboard-file)

I think carwin and I were under the impression that the bindings are done in the current file.

Perhaps this line is unnecessary? I have removed it (and its corresponding parenthesis) and the bindings are now happening.

from mu4e-dashboard.

rougier avatar rougier commented on August 18, 2024

That's weird. The mu4e-dashboard-file is supposed to point to the dashboard org file. What is the value in your case?

from mu4e-dashboard.

dmgerman avatar dmgerman commented on August 18, 2024

That's weird. The mu4e-dashboard-file is supposed to point to the dashboard org file. What is the value in your case?

mu4e-dashboard-file is a variable defined in โ€˜mu4e-dashboard.elโ€™.
Its value is "~/.emacs.d/mu4e-dashboard.org"

here is the definition:

(defcustom mu4e-dashboard-file "~/.emacs.d/mu4e-dashboard.org"
"Path to the dashboard org file."
:type 'string)

Our problem is that we didn't know this was the dashboard.

I think this is because mu4e-dashboard-mode does not load mu4e-dashboard-file. It acts on the current file, so we simply assumed that the current file is the dashboard.

My suggestion is to choose one of following two when calling mu4e-dashboard-mode:

  1. Process the current file: comment the line (with-current-buffer (find-file-noselect mu4e-dashboard-file)

  2. Switch to mu4e-dashboard-file and make it the dashboard file.

I vote for #1.

from mu4e-dashboard.

rougier avatar rougier commented on August 18, 2024

I also vote for #1. Do you want to make a PR?

from mu4e-dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.