unofficial mirror of notmuch@notmuchmail.org
 help / color / Atom feed
* notmuch-emacs: Highlight the file attachment
@ 2020-06-18 12:11 Jörg Volbers
  2020-06-19  9:59 ` David Edmondson
  0 siblings, 1 reply; 2+ messages in thread
From: Jörg Volbers @ 2020-06-18 12:11 UTC (permalink / raw)
  To: notmuch

Hi there,

When showing a message with notmuch-show, I'd love to highlight 
the file attachment part. I want to distinguish them from the 
other mml stuff which I usually do not need to care about. Is 
there any easy way to determine that part programmatically?

Looking at the text properties in the show buffer, these parts 
seem to be simple buttons with no special property. If notmuch 
show would add a text property when inserting these particular 
buttons, one could simply add a face overlay or something. Or it 
could be wrapped in a special face.

JV

-- 
http://www.joergvolbers.de
https://fu-berlin.academia.edu/joergvolbers
https://www.geisteswissenschaften.fu-berlin.de/we01/institut/mitarbeiter/koop_gaeste/volbers/index.html

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

* Re: notmuch-emacs: Highlight the file attachment
  2020-06-18 12:11 notmuch-emacs: Highlight the file attachment Jörg Volbers
@ 2020-06-19  9:59 ` David Edmondson
  0 siblings, 0 replies; 2+ messages in thread
From: David Edmondson @ 2020-06-19  9:59 UTC (permalink / raw)
  To: Jörg Volbers, notmuch

On Thursday, 2020-06-18 at 14:11:20 +02, Jörg Volbers wrote:

> Hi there,
>
> When showing a message with notmuch-show, I'd love to highlight 
> the file attachment part. I want to distinguish them from the 
> other mml stuff which I usually do not need to care about. Is 
> there any easy way to determine that part programmatically?

Modifying the button part based on whether the part in question is
structural or leaf should enable you to then apply different formatting.

Structural parts will, I think, always have a :content attribute that is
a list.

> Looking at the text properties in the show buffer, these parts 
> seem to be simple buttons with no special property. If notmuch 
> show would add a text property when inserting these particular 
> buttons, one could simply add a face overlay or something. Or it 
> could be wrapped in a special face.

dme.
-- 
I got a girlfriend that's better than that.

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-18 12:11 notmuch-emacs: Highlight the file attachment Jörg Volbers
2020-06-19  9:59 ` David Edmondson

unofficial mirror of notmuch@notmuchmail.org

Archives are clonable:
	git clone --mirror https://yhetil.org/notmuch/0 notmuch/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 notmuch notmuch/ https://yhetil.org/notmuch \
		notmuch@notmuchmail.org
	public-inbox-index notmuch

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.mail.notmuch.general
	nntp://news.gmane.io/gmane.mail.notmuch.general


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git