[Orgmode] Re: A few questions about how you write e-mails

2010-10-22 Thread suvayu ali
Hi Matthias,

On 22 October 2010 05:27, Matthias Danzl  wrote:
> On 10/21/2010 10:10 AM, suvayu ali wrote:
>> On 20 October 2010 20:40, Nick Dokos  wrote:
>>> Given the mangling that mailers do to replies (e.g. the idiotic default
>>> top posting of Thunderbird and its ilk), how they handle signatures, and
>>> the non-standard nature of signatures themselves, I'd say this is pretty
>>> much hopeless.
>>
>> After our discussion yesterday, I did some research. Didn't find
>> anything +ve. I am considering switching to mutt. :)
>
> Hello!!
>
> I didn't read the entire thread on this, but I like to add that Thunderbird
> can be customized in where and how it posts the original message in replies
> (Account Settings -> Composition). AND it has support for an external
> editor [0]. I'm using Thunderbird 3 + emacs. You even can use a single
> Profile
> cross-platform!
>
> However, thanks for boxquote.el, it's pretty nice!
>
> [0] http://globs.org/articles.php?pg=2&lng=en Download and install "External
> Editor" and set it to launch a simple emacsclient
>

I have been using External Editor, tbemail.el and emacsclient for many
months now. Its great, better than before. But still it leaves me
wanting for more Emacs integration. My recent search for an emailer
started when I realised Thunderbird's attachment facility is pretty
much beyond my control.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: A few questions about how you write e-mails

2010-10-22 Thread Matthias Danzl
On 10/21/2010 10:10 AM, suvayu ali wrote:
> On 20 October 2010 20:40, Nick Dokos  wrote:
>> Given the mangling that mailers do to replies (e.g. the idiotic default
>> top posting of Thunderbird and its ilk), how they handle signatures, and
>> the non-standard nature of signatures themselves, I'd say this is pretty
>> much hopeless.
> 
> After our discussion yesterday, I did some research. Didn't find
> anything +ve. I am considering switching to mutt. :)

Hello!!

I didn't read the entire thread on this, but I like to add that Thunderbird
can be customized in where and how it posts the original message in replies
(Account Settings -> Composition). AND it has support for an external
editor [0]. I'm using Thunderbird 3 + emacs. You even can use a single
Profile
cross-platform!

However, thanks for boxquote.el, it's pretty nice!

[0] http://globs.org/articles.php?pg=2&lng=en Download and install "External
Editor" and set it to launch a simple emacsclient

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: A few questions about how you write e-mails

2010-10-22 Thread Tassilo Horn
Sébastien Vauban 
writes:

> --8<---cut here---start->8---
> date
> --8<---cut here---end--->8---
>
> is still good. for code.. ;-) and maybe supported in other emailers
> than Gnus?

I'm not sure, but `C-u C-c M-m' inserts verbatim marks that are at least
understood by slrn (and Gnus).

#v+
date
#v-

Bye,
Tassilo


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: A few questions about how you write e-mails

2010-10-22 Thread Sébastien Vauban
Hi Nick,

Nick Dokos wrote:
> Jeff Horn  wrote:
> I use boxquote.el (see http://www.emacswiki.org/emacs/BoxQuote) for the
> above style, but as Samuel and Bernt point out that's not the best way
> for quoting material where the recipient is expected to use the quoted
> material (e.g. code snippets): extracting it from the boxquote is more
> difficult than it needs to be (even if one has boxquote.el installed).[fn:1]
>
> For code, I use the method Bernt described: message-mark-inserted-region,
> which is similar to the purely textual approach of Samuel's, but does
> provide nice fontification in my mailer.
>
> I bind these functions to keys: C-c q for the boxquote style, C-c m for
> the message style, but this is very much a matter of personal
> preference. Sometimes I need boxquote-unbox, but I don't have a key for
> that: I call the function with M-x ...
>
> [fn:1] I used boxquotes for some code once and Seb Vauban (iirc) took me
> to task. I'm pretty sure I have not repeated the faux-pas.

Now, I'd even advice you to use =C-c C-v C-d=, the Babel code markup. I've
signed the FSF papers, and its automatic fontifying (using Org mode faces)
should be integrated in the Gnus dev code.

#+begin_src sh
date
#+end_src

(see a recent thread on that)

But the following:

--8<---cut here---start->8---
date
--8<---cut here---end--->8---

is still good. for code.. ;-)  and maybe supported in other emailers than
Gnus?

Best regards,
  Seb

-- 
Sébastien Vauban


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: A few questions about how you write e-mails

2010-10-21 Thread suvayu ali
Hi Nick,

On 20 October 2010 20:40, Nick Dokos  wrote:
> Given the mangling that mailers do to replies (e.g. the idiotic default
> top posting of Thunderbird and its ilk), how they handle signatures, and
> the non-standard nature of signatures themselves, I'd say this is pretty
> much hopeless.

After our discussion yesterday, I did some research. Didn't find
anything +ve. I am considering switching to mutt. :)

> At least the end is a well defined place that
> org-footnote-action can always find.  The rest are shifting sands.
>

footnote-mode seems to do the trick exactly as I was hoping to. See
Tassilo's response.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: A few questions about how you write e-mails

2010-10-21 Thread suvayu ali
Hi Tassilo,

On 21 October 2010 00:45, Tassilo Horn  wrote:
> suvayu ali  writes:
>
> Hi!
>
>> Also in my case, the footnotes appear below the signature. I have to
>> manually move it above that before sending the email. Would be awesome
>> if org-footnote-action understood signatures somehow.
>
> Hm, I don't use org-mode and its functions when writing mails using
> Gnus, but I enable footnote-mode in message-mode and then call
> `Footnote-add-footnote' and friends directly.  That adds footnotes
> before the signature just as you want.  test [1], test [2], ...
>

This is exactly what I was looking for, I wasn't aware of
footnode-mode. Thanks a lot!! :)

> Bye,
> Tassilo

-- 
Suvayu

Open source is the future. It sets us free.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: A few questions about how you write e-mails

2010-10-21 Thread Tassilo Horn
suvayu ali  writes:

Hi!

> Also in my case, the footnotes appear below the signature. I have to
> manually move it above that before sending the email. Would be awesome
> if org-footnote-action understood signatures somehow.

Hm, I don't use org-mode and its functions when writing mails using
Gnus, but I enable footnote-mode in message-mode and then call
`Footnote-add-footnote' and friends directly.  That adds footnotes
before the signature just as you want.  test [1], test [2], ...

I've checked my .emacs, but I don't have any special setup for making
that work...

Bye,
Tassilo

Footnotes: 
[1]  foo
[2]  bar
-- 
This is a test signature...


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: A few questions about how you write e-mails

2010-10-20 Thread Noorul Islam K M
Matt Lundin  writes:

> Jeff Horn  writes:
>
>> Firstly, I notice some of the regular posters wrap org source in the
>> #+ style org wrappers, others use a <--8--cut-here---8--> 
>
>> My first question is two-fold: 1) how did you come to use this style
>> for quoting code in your replies:
>
> As others have mentioned, I use C-c M-m (message-mark-inserted-region)
> in message-mode to do the trick.
>
>> Secondly, and somewhat related to the first, are orgsters simply using
>> gnus with message-mode hook to utilize org footnotes? I've noticed I
>> can style/face the text with a message-mode hook, but I'm wondering
>> how everyone deals, in general, with plain text footnotes in e-mail?
>> Do you even use footnotes for sharing links?
>
> I simply have a global binding for org-footnote-action, which enables me
> to insert footnotes anywhere.[1]
>
>> Lastly, are any orgsters using gnus+gmail? I've tried just reading org
>> list mails in gnus, but I find switching back and forth to be jarring
>> if I read org list e-mails in a browser throughout the day, since I
>> end up re-reading a lot of mails. Also, mind sharing how you've mapped
>> the cumbersome "B m [Gmail]/Trash" to a better key? 
>
> If a message is worth deleting, you might consider B DEL, which
> dispatches it without mercy.
>

In the case of gmail imap it won't delete the mail completely instead it
archives. 

Thanks and Regards
Noorul

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: A few questions about how you write e-mails

2010-10-20 Thread Nick Dokos
suvayu ali  wrote:

> Hi Jeff,
> 
> On 20 October 2010 18:55, Matt Lundin  wrote:
> > I simply have a global binding for org-footnote-action, which enables me
> > to insert footnotes anywhere.[1]
> >
> 
> I do that too, but it shows up as [fn:1] for me. Is there some
> variable I can customise to get it as [1] when I am using it outside
> org-mode?
> 

There is a variable (of course!):

,
| org-footnote-auto-label is a variable defined in `org-footnote.el'.
| Its value is t
| 
| Documentation:
| Non-nil means define automatically new labels for footnotes.
| Possible values are:
| 
| nilprompt the user for each label
| t  create unique labels of the form [fn:1], [fn:2], ...
| confirmlike t, but let the user edit the created value.  In particular,
|the label can be removed from the minibuffer, to create
|an anonymous footnote.
| plain  Automatically create plain number labels like [1]
| 
| You can customize this variable.
`

but how to use it in the way you specify is left as an exercise for the
interested reader.

> Also in my case, the footnotes appear below the signature. I have to
> manually move it above that before sending the email. Would be awesome
> if org-footnote-action understood signatures somehow.
> 

Given the mangling that mailers do to replies (e.g. the idiotic default
top posting of Thunderbird and its ilk), how they handle signatures, and
the non-standard nature of signatures themselves, I'd say this is pretty
much hopeless. At least the end is a well defined place that
org-footnote-action can always find.  The rest are shifting sands.

Of course, if you use a nice primitive mailer[1] where *you* do all the
placement the way *you* like it, that's no problem at all. I can add all
the footnotes I want, then M-> C-c C-s, done (that is, if I *had* a signature,
which I don't - and M-> is always right, since I (almost) never top-post).

Footnotes:

[1] E.g. mh-e :-)

Nick

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: A few questions about how you write e-mails

2010-10-20 Thread suvayu ali
Hi Jeff,

On 20 October 2010 18:55, Matt Lundin  wrote:
> I simply have a global binding for org-footnote-action, which enables me
> to insert footnotes anywhere.[1]
>

I do that too, but it shows up as [fn:1] for me. Is there some
variable I can customise to get it as [1] when I am using it outside
org-mode?

Also in my case, the footnotes appear below the signature. I have to
manually move it above that before sending the email. Would be awesome
if org-footnote-action understood signatures somehow.

-- 
Suvayu

Open source is the future. It sets us free.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: A few questions about how you write e-mails

2010-10-20 Thread Matt Lundin
Jeff Horn  writes:

> Firstly, I notice some of the regular posters wrap org source in the
> #+ style org wrappers, others use a <--8--cut-here---8--> 

> My first question is two-fold: 1) how did you come to use this style
> for quoting code in your replies:

As others have mentioned, I use C-c M-m (message-mark-inserted-region)
in message-mode to do the trick.

> Secondly, and somewhat related to the first, are orgsters simply using
> gnus with message-mode hook to utilize org footnotes? I've noticed I
> can style/face the text with a message-mode hook, but I'm wondering
> how everyone deals, in general, with plain text footnotes in e-mail?
> Do you even use footnotes for sharing links?

I simply have a global binding for org-footnote-action, which enables me
to insert footnotes anywhere.[1]

> Lastly, are any orgsters using gnus+gmail? I've tried just reading org
> list mails in gnus, but I find switching back and forth to be jarring
> if I read org list e-mails in a browser throughout the day, since I
> end up re-reading a lot of mails. Also, mind sharing how you've mapped
> the cumbersome "B m [Gmail]/Trash" to a better key? 

If a message is worth deleting, you might consider B DEL, which
dispatches it without mercy.

Best,
Matt

Footnotes:

[1] It works like a charm.

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: A few questions about how you write e-mails

2010-10-20 Thread Bernt Hansen
Samuel Wales  writes:

> On 2010-10-19, Jeff Horn  wrote:
>> .
>> | like this
>> | or this
>> .__
>
> As it can be an obstacle for people who are new to Emacs to remove the
> rectangle,
> I do
>
> ===
> This
> ===

Gnus provides a function to

--8<---cut here---start->8---
wrap text like
this
--8<---cut here---end--->8---

using C-c M-m (message-mark-inserted-region)

I have that as a global binding now
(global-set-key (kbd " m") 'message-mark-inserted-region)


I also use boxquote.el
(global-set-key (kbd " r") 'boxquote-region)
(global-set-key (kbd " f") 'boxquote-insert-file)

HTH,
Bernt

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: A few questions about how you write e-mails

2010-10-19 Thread Glyn Millington
Jeff Horn  writes:

> Dear orgsters,
>
> I've had a few nagging questions that I didn't think warranted too
> much discussion, but my curiosity has gotten the better of me this
> evening.
>
> Firstly, I notice some of the regular posters wrap org source in the
> #+ style org wrappers, others use a <--8--cut-here---8--> or some
> similar "horizontal-rule", and yet others use some sort of vertical
> "quoting":
>
> .
> | like this or this
> .__
>
> My first question is two-fold: 1) how did you come to use this style
> for quoting code in your replies, and 2) mind sharing the macros or
> letting us know what packages you use that help make your e-mails look
> tidy?

boxquote.el 


http://www.davep.org/emacs/boxquote.el

,
| ;; boxquote provides a set of functions for using a text quoting style
| ;; that partially boxes in the left hand side of an area of text, such a
| ;; marking style might be used to show externally included text or
| ;; example code.
`


atb




Glyn


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: A few questions about how you write e-mails

2010-10-19 Thread Noorul Islam K M
Jeff Horn  writes:

> Dear orgsters,
>
> I've had a few nagging questions that I didn't think warranted too
> much discussion, but my curiosity has gotten the better of me this
> evening.
>
> Firstly, I notice some of the regular posters wrap org source in the
> #+ style org wrappers, others use a <--8--cut-here---8--> or some
> similar "horizontal-rule", and yet others use some sort of vertical
> "quoting":
>
> .
> | like this
> | or this
> .__
>
> My first question is two-fold: 1) how did you come to use this style
> for quoting code in your replies, and 2) mind sharing the macros or
> letting us know what packages you use that help make your e-mails look
> tidy?
>
> Secondly, and somewhat related to the first, are orgsters simply using
> gnus with message-mode hook to utilize org footnotes? I've noticed I
> can style/face the text with a message-mode hook, but I'm wondering
> how everyone deals, in general, with plain text footnotes in e-mail?
> Do you even use footnotes for sharing links?
>
> Lastly, are any orgsters using gnus+gmail? I've tried just reading org
> list mails in gnus, but I find switching back and forth to be jarring
> if I read org list e-mails in a browser throughout the day, since I
> end up re-reading a lot of mails. Also, mind sharing how you've mapped
> the cumbersome "B m [Gmail]/Trash" to a better key? If anyone feels
> inspired, I'd use a package that utilized gmail movement shortcuts in
> gnus (so mark with x, move out of inbox with e, or move to trash (as
> above) with #).

I have something like this in my .gnus

(defun noorul/move-to-gmail-trash ()
  (interactive)
  (let ((prefix (funcall gnus-move-group-prefix-function
 gnus-newsgroup-name)))
(let ((trash (concat prefix "[Gmail]/Trash")))
  (gnus-summary-move-article nil trash

(gnus-define-keys gnus-summary-mode-map 
"\C-c\C-g" noorul/move-to-gmail-trash)

Also lots of gnus imap development is going on now. The latest dev build
fetches imap mail faster. But still B m is quiet slow. I hope new work
will give gnus a better future.

Thanks and Regards
Noorul

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode