Re: notmuch-mode snippet: auto-select "inbox" widget when launching

Subject: Re: notmuch-mode snippet: auto-select "inbox" widget when launching

Date: Mon, 02 Aug 2021 07:08:21 -0300

To: Christian Tietze, notmuch@notmuchmail.org

Cc:

From: David Bremner


Christian Tietze <me@christiantietze.de> writes:

>
> The existing hooks are kinda wonky for this,
> though. `notmuch-hello-mode-hook` is executed too early, before
> widgets are available to move the point to, for example. And adding an
> advice around notmuch-hello doesn't help because that's executed for
> every refresh, it seems.

Did you try notmuch-hello-refresh-hook? Maybe set a varible in
notmuch-hello-mode-hook to say "new invocation" and do the jump in
notmuch-refresh-hook?

> Do you have any suggestions? I don't want to propose a patch that
> changes when the hook is executed because I don't know why the hook
> runs before the widgets are available.

Some "not really solution" ideas:

- you can remove notmuch-hello-insert-header from
  notmuch-hello-sections, which means less tabbing

- by default there are key-sequences starting with j that jump to each
  configured saved-search
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: