* Many color per line in notuch emacs mode
@ 2012-11-25 12:49 kedals0
2012-11-27 10:29 ` Jameson Graef Rollins
0 siblings, 1 reply; 4+ messages in thread
From: kedals0 @ 2012-11-25 12:49 UTC (permalink / raw)
To: notmuch
Hi,
I can set color per line using notmuch-search-line-faces. But I would
like to specify color per line field, i.e a color for date, another for
authors for exemple.
To do this, I would like to use a 3-tuple list for
notmuch-search-line-faces:
:type '(alist :key-type (string) :field (string) :value-type
(custom-face-edit))
The problem is function notmuch-search-color-line take a non structured
line in args. Then it is needed to parse it to find out field.
Do you think it would be possible to add a mecanism which permit to
color a field during line building ?
Thx,
Dal
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Many color per line in notuch emacs mode
2012-11-25 12:49 Many color per line in notuch emacs mode kedals0
@ 2012-11-27 10:29 ` Jameson Graef Rollins
2012-11-28 8:41 ` kedals0
0 siblings, 1 reply; 4+ messages in thread
From: Jameson Graef Rollins @ 2012-11-27 10:29 UTC (permalink / raw)
To: kedals0, notmuch
[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]
On Sun, Nov 25 2012, kedals0@gmail.com wrote:
> I can set color per line using notmuch-search-line-faces. But I would
> like to specify color per line field, i.e a color for date, another for
> authors for exemple.
>
> To do this, I would like to use a 3-tuple list for
> notmuch-search-line-faces:
> :type '(alist :key-type (string) :field (string) :value-type
> (custom-face-edit))
>
> The problem is function notmuch-search-color-line take a non structured
> line in args. Then it is needed to parse it to find out field.
>
> Do you think it would be possible to add a mecanism which permit to
> color a field during line building ?
Hi, Dal. There are already configuration variables to color all the
individual fields in the search result. See the following face
configuration variables:
notmuch-search-date
notmuch-search-count
notmuch-search-subject
notmuch-search-matching-authors
notmuch-search-non-matching-authors
The best way to configure this stuff is with the emacs configuration
interface: M-x customize-group notmuch-search
jamie.
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Many color per line in notuch emacs mode
2012-11-27 10:29 ` Jameson Graef Rollins
@ 2012-11-28 8:41 ` kedals0
2012-11-28 18:32 ` Jameson Graef Rollins
0 siblings, 1 reply; 4+ messages in thread
From: kedals0 @ 2012-11-28 8:41 UTC (permalink / raw)
To: Jameson Graef Rollins, notmuch
Hi,
Thx for your respond.
To precise my saying, I would like to color a field in terms of tags
associated to its message, as it's done for notmuch-search-color-line.
I'm not sure to really understand configuration of these options, but I
think it's not possible.
Could you confirm me it ?
Thx
Dal.
Jameson Graef Rollins <jrollins@finestructure.net> writes:
> On Sun, Nov 25 2012, kedals0@gmail.com wrote:
>> I can set color per line using notmuch-search-line-faces. But I would
>> like to specify color per line field, i.e a color for date, another for
>> authors for exemple.
>>
>> To do this, I would like to use a 3-tuple list for
>> notmuch-search-line-faces:
>> :type '(alist :key-type (string) :field (string) :value-type
>> (custom-face-edit))
>>
>> The problem is function notmuch-search-color-line take a non structured
>> line in args. Then it is needed to parse it to find out field.
>>
>> Do you think it would be possible to add a mecanism which permit to
>> color a field during line building ?
>
> Hi, Dal. There are already configuration variables to color all the
> individual fields in the search result. See the following face
> configuration variables:
>
> notmuch-search-date
> notmuch-search-count
> notmuch-search-subject
> notmuch-search-matching-authors
> notmuch-search-non-matching-authors
>
> The best way to configure this stuff is with the emacs configuration
> interface: M-x customize-group notmuch-search
>
> jamie.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Many color per line in notuch emacs mode
2012-11-28 8:41 ` kedals0
@ 2012-11-28 18:32 ` Jameson Graef Rollins
0 siblings, 0 replies; 4+ messages in thread
From: Jameson Graef Rollins @ 2012-11-28 18:32 UTC (permalink / raw)
To: kedals0, notmuch
[-- Attachment #1: Type: text/plain, Size: 538 bytes --]
On Wed, Nov 28 2012, kedals0@gmail.com wrote:
> To precise my saying, I would like to color a field in terms of tags
> associated to its message, as it's done for notmuch-search-color-line.
>
> I'm not sure to really understand configuration of these options, but I
> think it's not possible.
>
> Could you confirm me it ?
It is not currently possible to color individual fields based on tags,
just the entire line. But the tag-based line coloring can change things
like the background, or font weight, which works well for me.
jamie.
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-28 18:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-25 12:49 Many color per line in notuch emacs mode kedals0
2012-11-27 10:29 ` Jameson Graef Rollins
2012-11-28 8:41 ` kedals0
2012-11-28 18:32 ` Jameson Graef Rollins
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.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).