font locking .txt files

A.J. Rossini rossini at
Fri Aug 13 17:58:55 CEST 2004

If you want "myfile.txt" to contain R code, then use "myfile.R"
instead, and it should font-lock like the rest.  Otherwise, you'll
have to put it into the right mode (i.e. M-x R-mode   or similar).

8rino-Luca Pantani <ottorino-luca.pantani at> writes:

> Hi all,
> this is my first (intentional) post to this list,
> so please forgive me if it's trivial.
> I would like to have myfile.txt fontyfied as the initial scratch file.
> I'm quite unexpert in the use of R,
> and having different colurs for after keys like #, and " helps me a lot
> in decoding what I'm writing. Particularly the day after.
> Also very useful is the automatic indentation.
> I know by reading "Getting started with xemacs"
> that this could be done activating the font lock mode for each window.
> In fact it works for the scratch window as well as for the R window,
> but it seems not to work for the myfile.txt window.
> Now I realize that there is a new #myfile.txt# together with the previous
> myfile.txt
> and it has different colours, actually only black and green after the key ".
> Moreover, the automatic indentation do not works.
> Eventually, how can I have all those useful features of *scratch* in my own
> files?
> Thanks
> Ottorino-Luca Pantani, Università di Firenze
> Dip. Scienza del Suolo e Nutrizione della Pianta
> P.zle Cascine 28 50144 Firenze Italia
> Tel 39 055 3288 384 Fax 39 055 333 273 OLPantani at
> ______________________________________________
> ESS-help at mailing list

Anthony Rossini			    Research Associate Professor
rossini at   
Biomedical and Health Informatics   University of Washington
Biostatistics, SCHARP/HVTN          Fred Hutchinson Cancer Research Center
UW (Tu/Th/F): 206-616-7630 FAX=206-543-3461 | Voicemail is unreliable
FHCRC  (M/W): 206-667-7025 FAX=206-667-4812 | use Email

CONFIDENTIALITY NOTICE: This e-mail message and any attachme...{{dropped}}

More information about the ESS-help mailing list