[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Attaching all files in dir
From: |
Glyn Millington |
Subject: |
Re: Attaching all files in dir |
Date: |
Tue, 04 May 2010 15:48:07 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Paulo Matos <pocmatos@gmail.com> writes:
> Hi,
>
> I have a directory with several files and I would like to attach them
> to my email in one go. Is there any function already prepared for
> this?
Not quite. The snippet below will allow you to attach all the files you
mark in dired in one go
,----
| ;; If you would like to attach all marked files from dired to a new
| ;; Gnus message then put the following in your .emacs:
|
| (require 'gnus-dired)
| (add-hook 'dired-mode-hook 'turn-on-gnus-dired-mode)
|
| ;; Then, from dired, you can mark files as normal and then hit C-c
| ;; C-m C-a to attach the files (as attachments, not inline) to a
| ;; message. If you would like to have an easier to get to binding I
| ;; would suggest the following:
|
| (define-key dired-mode-map "a" 'gnus-dired-attach)
`----
any use?
atb
Glyn