emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* sending emails from org
@ 2014-04-07 13:18 Rainer M Krug
  2014-04-07 14:24 ` Sharon Kimble
  0 siblings, 1 reply; 5+ messages in thread
From: Rainer M Krug @ 2014-04-07 13:18 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1006 bytes --]

Hi

I have two questions concerning sending subtrees as emails.

1) Which properties are supported by org-mime - I could not find a list
or an example of an email from org.

2) I am using gnus and have the following hooks to add automatic signing
of emails:

,----
| #+begin_src emacs-lisp
| (add-hook 'gnus-message-setup-hook 'mml-secure-message-sign-pgpmime)
| (add-hook 'message-s'etup-hook 'mml-secure-message-sign-pgpmime)
| #+end_src
`----

These hooks are not called when composing emails in org. Is this on
purpose, or to gnus specific?

Thanks,

Rainer


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug

PGP: 0x0F52F982

[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sending emails from org
  2014-04-07 13:18 sending emails from org Rainer M Krug
@ 2014-04-07 14:24 ` Sharon Kimble
  2014-04-07 20:29   ` Thorsten Jolitz
  0 siblings, 1 reply; 5+ messages in thread
From: Sharon Kimble @ 2014-04-07 14:24 UTC (permalink / raw)
  To: Rainer M Krug; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1194 bytes --]

Rainer M Krug <Rainer@krugs.de> writes:

> Hi
>
> I have two questions concerning sending subtrees as emails.
>
> 1) Which properties are supported by org-mime - I could not find a list
> or an example of an email from org.
>
> 2) I am using gnus and have the following hooks to add automatic signing
> of emails:
>
> ,----
> | #+begin_src emacs-lisp
> | (add-hook 'gnus-message-setup-hook 'mml-secure-message-sign-pgpmime)
> | (add-hook 'message-s'etup-hook 'mml-secure-message-sign-pgpmime)
> | #+end_src
> `----
>
> These hooks are not called when composing emails in org. Is this on
> purpose, or to gnus specific?

I've found that I have to have some commands both in '.emacs' and in '.gnus',
and I use the same code to sign my emails in gnus. I've never tried writing an
email in org-mode, but if I was I'd tend to use a snippet from 'YASnippet', or
write my own for it. I've always believed in writing emails in gnus, and using
org-mode for TODOs, documents, etc. 

Sharon. 
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, Fluxbox 1.3.5, emacs 24.3.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sending emails from org
  2014-04-07 14:24 ` Sharon Kimble
@ 2014-04-07 20:29   ` Thorsten Jolitz
  2014-04-08  7:53     ` Rainer M Krug
  2014-04-08  7:54     ` Rainer M Krug
  0 siblings, 2 replies; 5+ messages in thread
From: Thorsten Jolitz @ 2014-04-07 20:29 UTC (permalink / raw)
  To: emacs-orgmode

Sharon Kimble <boudiccas@talktalk.net> writes:

> Rainer M Krug <Rainer@krugs.de> writes:
>
>> Hi
>>
>> I have two questions concerning sending subtrees as emails.
>>
>> 1) Which properties are supported by org-mime - I could not find a list
>> or an example of an email from org.
>>
>> 2) I am using gnus and have the following hooks to add automatic signing
>> of emails:
>>
>> ,----
>> | #+begin_src emacs-lisp
>> | (add-hook 'gnus-message-setup-hook 'mml-secure-message-sign-pgpmime)
>> | (add-hook 'message-s'etup-hook 'mml-secure-message-sign-pgpmime)
>> | #+end_src
>> `----
>>
>> These hooks are not called when composing emails in org. Is this on
>> purpose, or to gnus specific?
>
> I've found that I have to have some commands both in '.emacs' and in
> .gnus',
> and I use the same code to sign my emails in gnus. I've never tried
> writing an
> email in org-mode, but if I was I'd tend to use a snippet from
> YASnippet', or
> write my own for it. I've always believed in writing emails in gnus,
> and using
> org-mode for TODOs, documents, etc. 

You probably could have the best of both worlds using outorg.el, which
works out of the box with message-mode (although I never tried these
signing functions).

1. get outshine.el and outorg.el (github or melpa)

2. before loading outline-mode: define outline-minor-mode prefix in
.emacs:

#+begin_src emacs-lisp
 ;; must be set before outline is loaded
 (defvar outline-minor-mode-prefix "\M-#")
#+end_src


or maybe "\C-c".


3. put this in your .emacs:

#+begin_src emacs-lisp
(require 'outshine) ; has soft dependency to 'outorg
 (add-hook 'outline-minor-mode-hook 'outshine-hook-function)
 (add-hook 'message-mode-hook 'outline-minor-mode)
#+end_src

4. write your emails/posts in message-mode, and switch to full Org-mode
with e.g. M-# M-# (M-x outorg-edit-as-org). When there are already
Org-mode headlines in the message mode buffer, use C-u M-# M-# to edit
the whole buffer in Org-mode, and M-# M-# to edit the subtree at point. 

Use M-# (outorg-copy-edits-and-exit) when you are done in the
\*outorg-edit-buffer\*. 

There are several prefix args that allow you to (temporarilly or
persistently) insert a template for export options:

#+begin_quote
outorg-edit-as-org is an interactive Lisp function in `outorg.el'.

(outorg-edit-as-org &optional ARG)
 
 Convert and copy to temporary Org buffer
 
 With ARG, act conditional on the raw value of ARG:
 
 | prefix | raw | action 1          | action 2                         |
 |--------+-----+-------------------+----------------------------------|
 | C-u    | (4) | edit-whole-buffer | ---                              |
 | C-1    |   1 | edit-whole-buffer | insert default export-template   |
 | C-2    |   2 | edit-whole-buffer | ask user for template-file       |
 | C-3    |   3 | edit-whole-buffer | insert and keep default template |
 | C-4    |   4 | edit-whole-buffer | insert and keep template-file    |
#+end_quote

As a little demonstration, I switch to outorg, and insert the following
code-block. Doing C-c C-c in the block suffices to attach the ASCII
version of the email.

#+begin_src emacs-lisp :results value
(org-export-as 'ascii)
#+end_src

#+results:
			  ___________________
			    Thorsten Jolitz
			   tjolitz@gmail.com
			  ___________________


1 --text follows this line--
============================

  Sharon Kimble <boudiccas@talktalk.net> writes:

  > Rainer M Krug <Rainer@krugs.de> writes: > Hi > > I have two
  >questions concerning sending subtrees as emails.  > > 1) Which
  >properties are supported by org-mime - I could not find a list > or
  >an example of an email from org.  > > 2) I am using gnus and have the
  >following hooks to add automatic signing > of emails: > > ,---- > |
  >#+begin_src emacs-lisp > | (add-hook 'gnus-message-setup-hook
  >'mml-secure-message-sign-pgpmime) > | (add-hook 'message-s'etup-hook
  >'mml-secure-message-sign-pgpmime) > | #+end_src > `---- > > These
  >hooks are not called when composing emails in org. Is this on >
  >purpose, or to gnus specific?  I've found that I have to have some
  >commands both in '.emacs' and in .gnus', and I use the same code to
  >sign my emails in gnus. I've never tried writing an email in
  >org-mode, but if I was I'd tend to use a snippet from YASnippet', or
  >write my own for it. I've always believed in writing emails in gnus,
  >and using org-mode for TODOs, documents, etc.

  You probably could have the best of both worlds using outorg.el, which
  works out of the box with message-mode (although I never tried these
  signing functions).

  1. get outshine.el and outorg.el (github or melpa)

  2. before loading outline-mode: define outline-minor-mode prefix in
  .emacs:

  ,----
  | ;; must be set before outline is loaded
  | (defvar outline-minor-mode-prefix "\M-#")
  `----


  or maybe "\C-c".


  1. put this in your .emacs:

  ,----
  | (require 'outshine) ; has soft dependency to 'outorg
  |  (add-hook 'outline-minor-mode-hook 'outshine-hook-function)
  |  (add-hook 'message-mode-hook 'outline-minor-mode)
  `----

  1. write your emails/posts in message-mode, and switch to full
     Org-mode
  with e.g. M-# M-# (M-x outorg-edit-as-org). When there are already
  Org-mode headlines in the message mode buffer, use C-u M-# M-# to edit
  the whole buffer in Org-mode, and M-# M-# to edit the subtree at
  point.

  Use M-# (outorg-copy-edits-and-exit) when you are done in the
  \*outorg-edit-buffer\*.

  There are several prefix args that allow you to (temporarilly or
  persistently) insert a template for export options:

        outorg-edit-as-org is an interactive Lisp function in
        `outorg.el'.

        (outorg-edit-as-org &optional ARG)

        Convert and copy to temporary Org buffer

        With ARG, act conditional on the raw value of ARG:

         prefix  raw  action 1           action 2                         
        ------------------------------------------------------------------
         C-u     (4)  edit-whole-buffer  ---                              
         C-1       1  edit-whole-buffer  insert default export-template   
         C-2       2  edit-whole-buffer  ask user for template-file       
         C-3       3  edit-whole-buffer  insert and keep default template 
         C-4       4  edit-whole-buffer  insert and keep template-file    


  ,----
  | (org-export-as 'ascii)
  `----


  -- cheers, Thorsten



					  Emacs 24.3.1 (Org mode 8.2.5h)


-- 
cheers,
Thorsten

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sending emails from org
  2014-04-07 20:29   ` Thorsten Jolitz
@ 2014-04-08  7:53     ` Rainer M Krug
  2014-04-08  7:54     ` Rainer M Krug
  1 sibling, 0 replies; 5+ messages in thread
From: Rainer M Krug @ 2014-04-08  7:53 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 7908 bytes --]

Thorsten Jolitz <tjolitz@gmail.com> writes:

> Sharon Kimble <boudiccas@talktalk.net> writes:
>
>> Rainer M Krug <Rainer@krugs.de> writes:
>>
>>> Hi
>>>
>>> I have two questions concerning sending subtrees as emails.
>>>
>>> 1) Which properties are supported by org-mime - I could not find a list
>>> or an example of an email from org.
>>>
>>> 2) I am using gnus and have the following hooks to add automatic signing
>>> of emails:
>>>
>>> ,----
>>> | #+begin_src emacs-lisp
>>> | (add-hook 'gnus-message-setup-hook 'mml-secure-message-sign-pgpmime)
>>> | (add-hook 'message-s'etup-hook 'mml-secure-message-sign-pgpmime)
>>> | #+end_src
>>> `----
>>>
>>> These hooks are not called when composing emails in org. Is this on
>>> purpose, or to gnus specific?
>>
>> I've found that I have to have some commands both in '.emacs' and in
>> .gnus',
>> and I use the same code to sign my emails in gnus. I've never tried
>> writing an
>> email in org-mode, but if I was I'd tend to use a snippet from
>> YASnippet', or
>> write my own for it. I've always believed in writing emails in gnus,
>> and using
>> org-mode for TODOs, documents, etc. 
>
> You probably could have the best of both worlds using outorg.el, which
> works out of the box with message-mode (although I never tried these
> signing functions).
>
> 1. get outshine.el and outorg.el (github or melpa)
>
> 2. before loading outline-mode: define outline-minor-mode prefix in
> .emacs:
>
> #+begin_src emacs-lisp
>  ;; must be set before outline is loaded
>  (defvar outline-minor-mode-prefix "\M-#")
> #+end_src
>
>
> or maybe "\C-c".
>
>
> 3. put this in your .emacs:
>
> #+begin_src emacs-lisp
> (require 'outshine) ; has soft dependency to 'outorg
>  (add-hook 'outline-minor-mode-hook 'outshine-hook-function)
>  (add-hook 'message-mode-hook 'outline-minor-mode)
> #+end_src
>
> 4. write your emails/posts in message-mode, and switch to full Org-mode
> with e.g. M-# M-# (M-x outorg-edit-as-org). When there are already
> Org-mode headlines in the message mode buffer, use C-u M-# M-# to edit
> the whole buffer in Org-mode, and M-# M-# to edit the subtree at point. 
>
> Use M-# (outorg-copy-edits-and-exit) when you are done in the
> \*outorg-edit-buffer\*. 
>
> There are several prefix args that allow you to (temporarilly or
> persistently) insert a template for export options:
>
> #+begin_quote
> outorg-edit-as-org is an interactive Lisp function in `outorg.el'.
>
> (outorg-edit-as-org &optional ARG)
>  
>  Convert and copy to temporary Org buffer
>  
>  With ARG, act conditional on the raw value of ARG:
>  
>  | prefix | raw | action 1          | action 2                         |
>  |--------+-----+-------------------+----------------------------------|
>  | C-u    | (4) | edit-whole-buffer | ---                              |
>  | C-1    |   1 | edit-whole-buffer | insert default export-template   |
>  | C-2    |   2 | edit-whole-buffer | ask user for template-file       |
>  | C-3    |   3 | edit-whole-buffer | insert and keep default template |
>  | C-4    |   4 | edit-whole-buffer | insert and keep template-file    |
> #+end_quote
>
> As a little demonstration, I switch to outorg, and insert the following
> code-block. Doing C-c C-c in the block suffices to attach the ASCII
> version of the email.
>
> #+begin_src emacs-lisp :results value
> (org-export-as 'ascii)
> #+end_src
>
> #+results:
> 			  ___________________
> 			    Thorsten Jolitz
> 			   tjolitz@gmail.com
> 			  ___________________
>
>
> 1 --text follows this line--
> ============================
>
>   Sharon Kimble <boudiccas@talktalk.net> writes:
>
>   > Rainer M Krug <Rainer@krugs.de> writes: > Hi > > I have two
>   >questions concerning sending subtrees as emails.  > > 1) Which
>   >properties are supported by org-mime - I could not find a list > or
>   >an example of an email from org.  > > 2) I am using gnus and have the
>   >following hooks to add automatic signing > of emails: > > ,---- > |
>   >#+begin_src emacs-lisp > | (add-hook 'gnus-message-setup-hook
>   >'mml-secure-message-sign-pgpmime) > | (add-hook 'message-s'etup-hook
>   >'mml-secure-message-sign-pgpmime) > | #+end_src > `---- > > These
>   >hooks are not called when composing emails in org. Is this on >
>   >purpose, or to gnus specific?  I've found that I have to have some
>   >commands both in '.emacs' and in .gnus', and I use the same code to
>   >sign my emails in gnus. I've never tried writing an email in
>   >org-mode, but if I was I'd tend to use a snippet from YASnippet', or
>   >write my own for it. I've always believed in writing emails in gnus,
>   >and using org-mode for TODOs, documents, etc.
>
>   You probably could have the best of both worlds using outorg.el, which
>   works out of the box with message-mode (although I never tried these
>   signing functions).
>
>   1. get outshine.el and outorg.el (github or melpa)
>
>   2. before loading outline-mode: define outline-minor-mode prefix in
>   .emacs:
>
>   ,----
>   | ;; must be set before outline is loaded
>   | (defvar outline-minor-mode-prefix "\M-#")
>   `----
>
>
>   or maybe "\C-c".
>
>
>   1. put this in your .emacs:
>
>   ,----
>   | (require 'outshine) ; has soft dependency to 'outorg
>   |  (add-hook 'outline-minor-mode-hook 'outshine-hook-function)
>   |  (add-hook 'message-mode-hook 'outline-minor-mode)
>   `----
>
>   1. write your emails/posts in message-mode, and switch to full
>      Org-mode
>   with e.g. M-# M-# (M-x outorg-edit-as-org). When there are already
>   Org-mode headlines in the message mode buffer, use C-u M-# M-# to edit
>   the whole buffer in Org-mode, and M-# M-# to edit the subtree at
>   point.
>
>   Use M-# (outorg-copy-edits-and-exit) when you are done in the
>   \*outorg-edit-buffer\*.
>
>   There are several prefix args that allow you to (temporarilly or
>   persistently) insert a template for export options:
>
>         outorg-edit-as-org is an interactive Lisp function in
>         `outorg.el'.
>
>         (outorg-edit-as-org &optional ARG)
>
>         Convert and copy to temporary Org buffer
>
>         With ARG, act conditional on the raw value of ARG:
>
>          prefix  raw  action 1           action 2                         
>         ------------------------------------------------------------------
>          C-u     (4)  edit-whole-buffer  ---                              
>          C-1       1  edit-whole-buffer  insert default export-template   
>          C-2       2  edit-whole-buffer  ask user for template-file       
>          C-3       3  edit-whole-buffer  insert and keep default template 
>          C-4       4  edit-whole-buffer  insert and keep template-file    
>
>
>   ,----
>   | (org-export-as 'ascii)
>   `----

This sounds very interesting and useful and I will definitely try it out
because it sounds like adding many useful features I was missing in
message-mode (I got so used to the org type editing...),

But my reasoning to use org for composing some emails, is that I would
like to have the emails in the project related org file.

But it might be an option to use notmuch links as these are base on the
message id and put these into the org files.

Thanks a lot,

Rainer

>
>
>   -- cheers, Thorsten
>
>
>
> 					  Emacs 24.3.1 (Org mode 8.2.5h)

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug

PGP: 0x0F52F982

[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: sending emails from org
  2014-04-07 20:29   ` Thorsten Jolitz
  2014-04-08  7:53     ` Rainer M Krug
@ 2014-04-08  7:54     ` Rainer M Krug
  1 sibling, 0 replies; 5+ messages in thread
From: Rainer M Krug @ 2014-04-08  7:54 UTC (permalink / raw)
  To: Thorsten Jolitz; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 7908 bytes --]

Thorsten Jolitz <tjolitz@gmail.com> writes:

> Sharon Kimble <boudiccas@talktalk.net> writes:
>
>> Rainer M Krug <Rainer@krugs.de> writes:
>>
>>> Hi
>>>
>>> I have two questions concerning sending subtrees as emails.
>>>
>>> 1) Which properties are supported by org-mime - I could not find a list
>>> or an example of an email from org.
>>>
>>> 2) I am using gnus and have the following hooks to add automatic signing
>>> of emails:
>>>
>>> ,----
>>> | #+begin_src emacs-lisp
>>> | (add-hook 'gnus-message-setup-hook 'mml-secure-message-sign-pgpmime)
>>> | (add-hook 'message-s'etup-hook 'mml-secure-message-sign-pgpmime)
>>> | #+end_src
>>> `----
>>>
>>> These hooks are not called when composing emails in org. Is this on
>>> purpose, or to gnus specific?
>>
>> I've found that I have to have some commands both in '.emacs' and in
>> .gnus',
>> and I use the same code to sign my emails in gnus. I've never tried
>> writing an
>> email in org-mode, but if I was I'd tend to use a snippet from
>> YASnippet', or
>> write my own for it. I've always believed in writing emails in gnus,
>> and using
>> org-mode for TODOs, documents, etc. 
>
> You probably could have the best of both worlds using outorg.el, which
> works out of the box with message-mode (although I never tried these
> signing functions).
>
> 1. get outshine.el and outorg.el (github or melpa)
>
> 2. before loading outline-mode: define outline-minor-mode prefix in
> .emacs:
>
> #+begin_src emacs-lisp
>  ;; must be set before outline is loaded
>  (defvar outline-minor-mode-prefix "\M-#")
> #+end_src
>
>
> or maybe "\C-c".
>
>
> 3. put this in your .emacs:
>
> #+begin_src emacs-lisp
> (require 'outshine) ; has soft dependency to 'outorg
>  (add-hook 'outline-minor-mode-hook 'outshine-hook-function)
>  (add-hook 'message-mode-hook 'outline-minor-mode)
> #+end_src
>
> 4. write your emails/posts in message-mode, and switch to full Org-mode
> with e.g. M-# M-# (M-x outorg-edit-as-org). When there are already
> Org-mode headlines in the message mode buffer, use C-u M-# M-# to edit
> the whole buffer in Org-mode, and M-# M-# to edit the subtree at point. 
>
> Use M-# (outorg-copy-edits-and-exit) when you are done in the
> \*outorg-edit-buffer\*. 
>
> There are several prefix args that allow you to (temporarilly or
> persistently) insert a template for export options:
>
> #+begin_quote
> outorg-edit-as-org is an interactive Lisp function in `outorg.el'.
>
> (outorg-edit-as-org &optional ARG)
>  
>  Convert and copy to temporary Org buffer
>  
>  With ARG, act conditional on the raw value of ARG:
>  
>  | prefix | raw | action 1          | action 2                         |
>  |--------+-----+-------------------+----------------------------------|
>  | C-u    | (4) | edit-whole-buffer | ---                              |
>  | C-1    |   1 | edit-whole-buffer | insert default export-template   |
>  | C-2    |   2 | edit-whole-buffer | ask user for template-file       |
>  | C-3    |   3 | edit-whole-buffer | insert and keep default template |
>  | C-4    |   4 | edit-whole-buffer | insert and keep template-file    |
> #+end_quote
>
> As a little demonstration, I switch to outorg, and insert the following
> code-block. Doing C-c C-c in the block suffices to attach the ASCII
> version of the email.
>
> #+begin_src emacs-lisp :results value
> (org-export-as 'ascii)
> #+end_src
>
> #+results:
> 			  ___________________
> 			    Thorsten Jolitz
> 			   tjolitz@gmail.com
> 			  ___________________
>
>
> 1 --text follows this line--
> ============================
>
>   Sharon Kimble <boudiccas@talktalk.net> writes:
>
>   > Rainer M Krug <Rainer@krugs.de> writes: > Hi > > I have two
>   >questions concerning sending subtrees as emails.  > > 1) Which
>   >properties are supported by org-mime - I could not find a list > or
>   >an example of an email from org.  > > 2) I am using gnus and have the
>   >following hooks to add automatic signing > of emails: > > ,---- > |
>   >#+begin_src emacs-lisp > | (add-hook 'gnus-message-setup-hook
>   >'mml-secure-message-sign-pgpmime) > | (add-hook 'message-s'etup-hook
>   >'mml-secure-message-sign-pgpmime) > | #+end_src > `---- > > These
>   >hooks are not called when composing emails in org. Is this on >
>   >purpose, or to gnus specific?  I've found that I have to have some
>   >commands both in '.emacs' and in .gnus', and I use the same code to
>   >sign my emails in gnus. I've never tried writing an email in
>   >org-mode, but if I was I'd tend to use a snippet from YASnippet', or
>   >write my own for it. I've always believed in writing emails in gnus,
>   >and using org-mode for TODOs, documents, etc.
>
>   You probably could have the best of both worlds using outorg.el, which
>   works out of the box with message-mode (although I never tried these
>   signing functions).
>
>   1. get outshine.el and outorg.el (github or melpa)
>
>   2. before loading outline-mode: define outline-minor-mode prefix in
>   .emacs:
>
>   ,----
>   | ;; must be set before outline is loaded
>   | (defvar outline-minor-mode-prefix "\M-#")
>   `----
>
>
>   or maybe "\C-c".
>
>
>   1. put this in your .emacs:
>
>   ,----
>   | (require 'outshine) ; has soft dependency to 'outorg
>   |  (add-hook 'outline-minor-mode-hook 'outshine-hook-function)
>   |  (add-hook 'message-mode-hook 'outline-minor-mode)
>   `----
>
>   1. write your emails/posts in message-mode, and switch to full
>      Org-mode
>   with e.g. M-# M-# (M-x outorg-edit-as-org). When there are already
>   Org-mode headlines in the message mode buffer, use C-u M-# M-# to edit
>   the whole buffer in Org-mode, and M-# M-# to edit the subtree at
>   point.
>
>   Use M-# (outorg-copy-edits-and-exit) when you are done in the
>   \*outorg-edit-buffer\*.
>
>   There are several prefix args that allow you to (temporarilly or
>   persistently) insert a template for export options:
>
>         outorg-edit-as-org is an interactive Lisp function in
>         `outorg.el'.
>
>         (outorg-edit-as-org &optional ARG)
>
>         Convert and copy to temporary Org buffer
>
>         With ARG, act conditional on the raw value of ARG:
>
>          prefix  raw  action 1           action 2                         
>         ------------------------------------------------------------------
>          C-u     (4)  edit-whole-buffer  ---                              
>          C-1       1  edit-whole-buffer  insert default export-template   
>          C-2       2  edit-whole-buffer  ask user for template-file       
>          C-3       3  edit-whole-buffer  insert and keep default template 
>          C-4       4  edit-whole-buffer  insert and keep template-file    
>
>
>   ,----
>   | (org-export-as 'ascii)
>   `----

This sounds very interesting and useful and I will definitely try it out
because it sounds like adding many useful features I was missing in
message-mode (I got so used to the org type editing...),

But my reasoning to use org for composing some emails, is that I would
like to have the emails in the project related org file.

But it might be an option to use notmuch links as these are base on the
message id and put these into the org files.

Thanks a lot,

Rainer

>
>
>   -- cheers, Thorsten
>
>
>
> 					  Emacs 24.3.1 (Org mode 8.2.5h)

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug

PGP: 0x0F52F982

[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-04-08  7:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-07 13:18 sending emails from org Rainer M Krug
2014-04-07 14:24 ` Sharon Kimble
2014-04-07 20:29   ` Thorsten Jolitz
2014-04-08  7:53     ` Rainer M Krug
2014-04-08  7:54     ` Rainer M Krug

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).