* Colouring diff-part of an email
@ 2013-03-06 9:58 Adam Sjøgren
2013-03-06 13:40 ` Tassilo Horn
0 siblings, 1 reply; 6+ messages in thread
From: Adam Sjøgren @ 2013-03-06 9:58 UTC (permalink / raw)
To: info-gnus-english
Hi.
I am on a couple of mailing lists at work that receive an email per
commit in a source code repository.
Each email starts with some information about the commit - author, date,
revision, commit log message, and then the diff follows.
Has anyone written something that will colour an inline diff in an
email?
If I jump to the *Article* buffer and turn on diff-mode, the whole
buffer is coloured - which is a little much, headers become dull grey
etc.
I guess I just need some kind of washing, but I don't know quite where
to start, so I thought I'd ask if anyone already has solved the problem
:-)
I could change the email to be more MIMEish (inlining the diff-part),
but I think those of my colleagues who do not use Gnus would be annoyed
when their mail clients start to show the diff as an attachment.
Best regards,
Adam
--
"Set out on a laughless day Adam Sjøgren
Like a troupe of clowns" asjo@koldfront.dk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Colouring diff-part of an email
2013-03-06 9:58 Colouring diff-part of an email Adam Sjøgren
@ 2013-03-06 13:40 ` Tassilo Horn
2013-03-06 14:53 ` Adam Sjøgren
2013-03-06 17:41 ` Sivaram Neelakantan
0 siblings, 2 replies; 6+ messages in thread
From: Tassilo Horn @ 2013-03-06 13:40 UTC (permalink / raw)
To: info-gnus-english
asjo@koldfront.dk (Adam Sjøgren) writes:
Hi Adam,
> Has anyone written something that will colour an inline diff in an
> email?
Not sure, but I think Gnus can already do highlighting of org-mode style
source code blocks like the following:
#+BEGIN_SRC diff
+Some text added
-Some text deleted
+Some more text added
#+END_SRC
Not sure if that does obey `org-src-fontify-natively' (which should be
set to t), though. Well see when we receive this very mail.
Bye,
Tassilo
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Colouring diff-part of an email
2013-03-06 13:40 ` Tassilo Horn
@ 2013-03-06 14:53 ` Adam Sjøgren
2013-03-06 17:41 ` Sivaram Neelakantan
1 sibling, 0 replies; 6+ messages in thread
From: Adam Sjøgren @ 2013-03-06 14:53 UTC (permalink / raw)
To: info-gnus-english
On Wed, 06 Mar 2013 14:40:31 +0100, Tassilo wrote:
> #+BEGIN_SRC diff
> +Some text added
> -Some text deleted
> +Some more text added
> #+END_SRC
> Not sure if that does obey `org-src-fontify-natively' (which should be
> set to t), though. Well see when we receive this very mail.
After setting it to t, and editing one of the commit emails, it looks
perfect.
Great tip, thanks!
... maybe I can even make a washing function that adds those #+-thingies
automatically for me, so my colleagues don't have to see them in the
emails :-)
Best regards,
Adam
--
"Set out on a laughless day Adam Sjøgren
Like a troupe of clowns" asjo@koldfront.dk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Colouring diff-part of an email
2013-03-06 13:40 ` Tassilo Horn
2013-03-06 14:53 ` Adam Sjøgren
@ 2013-03-06 17:41 ` Sivaram Neelakantan
1 sibling, 0 replies; 6+ messages in thread
From: Sivaram Neelakantan @ 2013-03-06 17:41 UTC (permalink / raw)
To: info-gnus-english
On Wed, Mar 06 2013,Tassilo Horn wrote:
[snipped 7 lines]
> Not sure, but I think Gnus can already do highlighting of org-mode style
> source code blocks like the following:
>
> #+BEGIN_SRC diff
> +Some text added
> -Some text deleted
> +Some more text added
> #+END_SRC
>
Can see the above in colour, if it helps....
[snipped 11 lines]
sivaram
--
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <mailman.21536.1362563949.855.info-gnus-english@gnu.org>]
end of thread, other threads:[~2013-03-13 20:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-06 9:58 Colouring diff-part of an email Adam Sjøgren
2013-03-06 13:40 ` Tassilo Horn
2013-03-06 14:53 ` Adam Sjøgren
2013-03-06 17:41 ` Sivaram Neelakantan
[not found] <mailman.21536.1362563949.855.info-gnus-english@gnu.org>
2013-03-06 17:58 ` Frank Terbeck
2013-03-13 20:08 ` Adam Sjøgren
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 NNTP newsgroup(s).