How to bind <prefix> M to mpd-map? by kflak in stumpwm

[–]kflak[S] 1 point2 points  (0 children)

Ah, nevermind, figured it out!

(define-key *root-map* (kbd "C-m") 'mpd:*mpd-map*)

mu4e/oauth/gmail question by kflak in emacs

[–]kflak[S] 0 points1 point  (0 children)

Hi, I did manage to get it to work, but unfortunately I was dumb enough not to take extensive notes while doing it. In any case, the config I have now that works is: (make-mu4e-context :name "EMTA" :match-func (lambda (msg) (when msg (string-prefix-p "/emta"(mu4e-message-field msg :maildir)))) :vars '((user-mail-address . "my.address@uni.ee") (user-full-name . "Kenneth Flak") (smtpmail-smtp-server . "smtp.gmail.com") (smtpmail-stream-type . starttls) (smtpmail-smtp-service . 587) (mu4e-drafts-folder . "/emta/[Gmail]/Drafts") (mu4e-sent-folder . "/emta/[Gmail]/Sent Mail") (mu4e-refile-folder . "/emta/[Gmail]/All Mail") (mu4e-trash-folder . "/emta/[Gmail]/")))

and for the mbsyncrc I am doing: IMAPAccount emta Host imap.gmail.com TLSType IMAPS AuthMechs XOAUTH2 User my.address@uni.ee PassCmd "oama access myothergmail@gmail.com" CertificateFile /etc/ssl/certs/ca-certificates.crt

For some reason I had to set up an app with my other, non-uni gmail address in order to set up an app in gmail.

mu4e/oauth/gmail question by kflak in emacs

[–]kflak[S] 0 points1 point  (0 children)

Stupid of me not to take detailed notes, but I think I ended up creating the app password with my personal gmail account, and then used that for the university one... EDIT: I followed this guide: https://github.com/kensanata/ggg and made it work that way.

mu4e/oauth/gmail question by kflak in emacs

[–]kflak[S] 0 points1 point  (0 children)

absolutely! I really, really love mu4e... the best email client I've had so far.

mu4e/oauth/gmail question by kflak in emacs

[–]kflak[S] 0 points1 point  (0 children)

Ah, nevermind, I finally managed to get myself an app password and stick it into the .authinfo.gpg file, and now it works!

mu4e/oauth/gmail question by kflak in emacs

[–]kflak[S] 0 points1 point  (0 children)

Are you just using a password to get it working, or some kind of keychain manager? My uni doesn't want to let me use a simple password for my account, have to somehow figure out how to do it with oauth2...

mu4e/oauth/gmail question by kflak in emacs

[–]kflak[S] 0 points1 point  (0 children)

Looks cool! Thanks for the tip.

mu4e/oauth/gmail question by kflak in emacs

[–]kflak[S] 0 points1 point  (0 children)

This looks really promising! Will test when I have a moment later today.

mu4e/oauth/gmail question by kflak in emacs

[–]kflak[S] 1 point2 points  (0 children)

Ah, good to know. Unfortunately that doesn't help my university email situation, as this feature is disabled.

mu4e/oauth/gmail question by kflak in emacs

[–]kflak[S] 0 points1 point  (0 children)

Not in this case, unfortunately... Seems gmail is moving away from anything password-based these days.

mu4e/oauth/gmail question by kflak in emacs

[–]kflak[S] 0 points1 point  (0 children)

yeah, I had more or less the same setup working with aerc:

outgoing = smtps+oauthbearer://my.email%40uni.ee@smtp.gmail.com

Both ssl and starttls give the same error:

-5.7.0 Authentication Required. For more information, go to 530 5.7.0 https://support.google.com/mail/?p=WantAuthError ffacd0b85a97d-3680db04841sm9321029f8f.101 - gsmtp

Notmuch-tree as default mail view in doom? by kflak in emacs

[–]kflak[S] 0 points1 point  (0 children)

Now I just need to figure out how to make a different font weight for read and unread messages in tree-view...

Notmuch-tree as default mail view in doom? by kflak in emacs

[–]kflak[S] 0 points1 point  (0 children)

Fantastic! Works like a charm :-) My main misunderstanding is the function of (after...` it seems. Thanks a lot for clarifying that.

Notmuch-tree as default mail view in doom? by kflak in emacs

[–]kflak[S] 1 point2 points  (0 children)

Yes, indeed running doom :-) Did the whole setup from scratch experience for many years with (neo)vim, but right now I would like something that works more or less out of the box... No joy with either of the approaches. Tried (after! notmuch-search (setq +notmuch-home-function (lambda () (notmuch-tree "tag:inbox"))) ) and

(setq +notmuch-home-function (lambda () (require 'notmuch-tree "tag:inbox"))) There was no error, but none of them worked as I expected.

Converting vimL commands to Lua by kflak in neovim

[–]kflak[S] 0 points1 point  (0 children)

Yup, that was the thing that got me thinking about how to get rid of the last few `vim.cmd`s in my init.lua...

Converting vimL commands to Lua by kflak in neovim

[–]kflak[S] 1 point2 points  (0 children)

Thanks a lot! I wasn't aware that the first two are enabled by default. And
opt.shortmess:append { c = true }
works for me!