help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: evidence: nano(1) is better than Emacs


From: Yuri Khan
Subject: Re: evidence: nano(1) is better than Emacs
Date: Mon, 17 Nov 2014 23:08:14 +0700

On Mon, Nov 17, 2014 at 1:37 PM,  <saint@eng.it> wrote:

> Can you change the colors in nano?

Can. But it lacks indirection layers.

=== /usr/share/nano/debian.nanorc ===
syntax "apt/sources.list" "sources\.list(\.old|~)?$"
# component
color brightmagenta "^deb(-src)? ((http|file|ftp):/[^
]+|cdrom:\[[^\]]+\]/|cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/) [^ ]+ .+$"
# distribution
color brightred "^deb(-src)? ((http|file|ftp):/[^
]+|cdrom:\[[^\]]+\]/|cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/) [^ ]+"
# URI
color brightgreen "(http|file|ftp):/[^ ]+"
[…]
===

So one does not simply change one face and get e.g. all keywords
recolored; instead, one has to copy all the relevant configs and edit
them for each language.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]