In mu4e mode you can toggle some properties via the function mu4e-search-toggle-property
. More specifically, after calling this function, you can (de-)activate "Full-search", "Include-related", "Show threads", "Skip duplicates" and "Hide-predicate" by typing f
, r
, t
, u
and p
, respectively.
By default "Show threads" is on. Since I don't want my emails to be shown as threads, I have to enter M-x mu4e-search-toggle-property
followed by typing t
each time I start up mu4e, which is tedious. (Thanks to key bindings, typing Pt
would be enough, but this is still annoying.)
For this reason, I want to change my configuration file to automatically toggle off threading. However, I miserably fail at simulating the t
key press. So far, I have tried something like
(defun test ()
(ineractive)
(mu4e-search-toggle-property (kbd "t")))
which shows no effect.
How is it possible to simulate pressing t
after invoking this function? And why is the code snippet above ineffective?
interactive
spec does with thet
input - what value it passes to the function body. Then call the function with that value.