jeremy-compostella / org-msg

OrgMsg is a GNU/Emacs global minor mode mixing up Org mode and Message mode to compose and reply to emails in a Outlook HTML friendly style.
GNU General Public License v3.0
276 stars 57 forks source link

Feature request: defaultable attachment behaviour #126

Closed Hugo-Heagren closed 2 years ago

Hugo-Heagren commented 3 years ago

I find that I very rarely delete attachments, but I do add a lot of attachments. So, it would be convenient for me to be able to skip the step of pressing a in the dispatcher, by telling org-msg that I always want to add attachments, never delete them. We could do this with something like:

(setq org-msg-attach-default 'attach)

An implementation of this wouldn't break the current behaviour for those who are used to it, because the obvious thing to do is keep the dispatcher with both options if the variable is nil.

Of course I might sometimes want to delete attachments. To deal with this, perhaps org-msg-attach could always open the dispatcher (regardless of the variable above) when given a prefix argument. Another, similar possibility would be to give a direct keybinding to org-msg-attach-delete, so that the dispatcher could be similarly bypassed.

jeremy-compostella commented 2 years ago

I don't believe that such a feature is going to serve a large enough scope of users compared but it does add unnecessary complication of the code for a feature you could just implement with some Emacs configuration such as binding C-c C-a to org-msg-attach-attach in your own org-msg-edit-mode hook function.

Hugo-Heagren commented 2 years ago

Fair enough, if you don't think it's worth it for enough users I'll just do it locally.