on Tue, 02 Dec 2003 11:16:34PM +0000, Jonathan Dowland insinuated: > On Tue, Dec 02, 2003 at 04:47:22PM -0500, Nori Heikkinen wrote: > > in my vim configuration files, i have different settings for dark and > > light terminal backgrouds > <snip> > > i'd like to have the same functionality in my ~/.muttrc. looking at > > the documentation, i can't see that it supports conditionals. does > > it? if so, how can i put one in like that? > > You may be able to achieve the same effect using named x terminals. > > I have various colour schemes defined in ~/.Xresources[1], such as > [...] > > I can then start terminals with particular colour schemes by using > > $ x-terminal-emulator -name zenburn > $ x-terminal-emulator -name deepsea hey, that's really cool -- thanks! > Perhaps you could define dark and light colour re-mappings for the > same mutt colour scheme this way, and name your terminals according > to their background colours? yeah, that would be great -- but i'm still not sure how to put conditionals into the muttrc file ... maybe i could put those all in two different files, say ~/.mutt/rc.colors.1 and ~/.mutt/rc.colors.2, and then pick which one to source based on the name of the terminal i'm working in. but how do i find out the name? $DISPLAY is just ":0.0"; $TERM says "rxvt" ... if i do an `aterm -name foobar`, is there any way i can access the name 'foobar' from within that, by means of setting some environment variable or something? thanks again, </nori> -- .~. nori @ sccs.swarthmore.edu /V\ http://www.sccs.swarthmore.edu/~nori/jnl/ // \\ @ maenad.net /( )\ www.maenad.net ^`~'^ *------------------------------------------------------------------------* * http://www.aidsmarathon.com/participant.asp?runner=DCNO-3267&year=2003 * *------------------------------------------------------------------------* * Please help me raise money for AIDS as I train for * * the Whitman-Walker AIDS Marathon! * *------------------------------------------------------------------------*
Attachment:
pgpUNDcGN9PkV.pgp
Description: PGP signature