19

Open the directory in dired with C-x 4 d and type M-x turn-on-gnus-dired-mode. Then mark the required files with m (or whatever) and type C-c RET C-a. The files can now be attached to an already opened message buffer or assigned to a new one.


9

I can only suggest a solution for gnus and dired but it is at least easier as lawlist suggested. Open the directory in dired with C-x 4 d and type M-x turn-on-gnus-dired-mode. Then mark the required files and type C-c RET C-a. That's it and the files can be attached to an already opened or a new message buffer (I'm not sure if this works for other MUAs as ...


7

One way is to hook into message-send-hook: message-send-hook is a variable defined in ‘message.el’. Its value is nil This variable may be risky if used as a file-local variable. Documentation: Hook run before sending messages. This hook is run quite early when sending. For example: (defun my-confirm-empty-subject () "Allow user to quit when current ...


4

What you need to do is write a new interactive function that receives the optional prefix argument and runs either the "insert here" or "insert at bottom" functions. For your function to receive the prefix, it needs to have (interactive "P"). A single C-u prefix will be received as the list (4). Below is the general sort of thing you have to do. (defun ...


3

If I understood correctly, you are looking for the command message-fill-yanked-message, which is bound to C-c C-q in message-mode by default. See the Message Manual node on Insertion for a brief description of this command, including a caveat. In fact, message-mode is so powerful and flexible that I recommend reading its whole manual, which is relatively ...


3

I like to use helm-find-files for this. You navigate to where the files are, mark the ones you want with C-spc, and attach them with C-c C-a (or press tab and find the attach files to email action). The ivy equivalent of this is counsel-find-file. First, add this action to it: (ivy-add-actions 'counsel-find-file '(("a" (lambda (x) (unless (memq ...


2

The intended way to achieve Gmail-style citations is the following: (with-eval-after-load 'message (setq message-cite-style message-cite-style-gmail)) Inspecting the value and documentation of the alist message-cite-style-gmail provides further insight into the involved settings: (defconst message-cite-style-gmail '((message-cite-function '...


2

open up a GUI file browser and drag the files to your emacs draft window/buffer


1

With the default settings M-q effectively calls function message-fill-paragraph in message-mode. message-fill-paragraph acts differently for the header part and the rest of the message. The fill adds extra whitespace at the beginning of lines. The separation of the parts is given by the string given by the customizable variable mail-header-separator which ...


1

https://github.com/redguardtoo/mastering-emacs-in-one-year-guide/blob/master/gnus-guide-en.org#auto-complete-mail-address I use counsel-bbdb but company-bbdb is also enabled. To insert multiple mail address: Just press C-M-n in the candidates window. It's built in feature of ivy-mode which counsel-bbdb is dependent on. See http://oremacs.com/swiper/#key-...


1

Troubleshooting for some reason it gets stuck at the end of the From: line and won't advance further to the message body The docstrings of user option message-tab-body-function: Function to execute when ‘message-tab’ (TAB) is executed in the body. If nil, the function bound in ‘text-mode-map’ or ‘global-map’ is executed. and command message-tab: ...


1

You can do a generic scan for any Gnus backend. Look at gnus-group-get-new-news-this-group: gnus-group-get-new-news-this-group is an interactive compiled Lisp function in `gnus-group.el'. (gnus-group-get-new-news-this-group &optional N DONT-SCAN) Check for newly arrived news in the current group (and the N-1 next groups). The difference between N and ...


Only top voted, non community-wiki answers of a minimum length are eligible