unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to redefine color theme of nXhtml?
@ 2009-10-14 10:25 Water Lin
  2009-10-14 11:57 ` Richard Riley
  0 siblings, 1 reply; 6+ messages in thread
From: Water Lin @ 2009-10-14 10:25 UTC (permalink / raw)
  To: help-gnu-emacs


I try to use nXhtml to edit PHP, CSS, XHtml, Javascript codes in
Emacs23. I installed nXhtml successfully, but I find that the color
theme of nXhtml conflicts with my own Emacs theme. It makes that the PHP
mode, CSS mode etc. in nXhtml looks bad.

Can I re-define color of each modes in nXhtml?

-- 
Water Lin's notes and pencils: http://en.waterlin.org
Email: WaterLin@ymail.com


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

* Re: How to redefine color theme of nXhtml?
  2009-10-14 10:25 How to redefine color theme of nXhtml? Water Lin
@ 2009-10-14 11:57 ` Richard Riley
  2009-10-15  2:52   ` Water Lin
  2009-10-15  6:10   ` Water Lin
  0 siblings, 2 replies; 6+ messages in thread
From: Richard Riley @ 2009-10-14 11:57 UTC (permalink / raw)
  To: help-gnu-emacs

Water Lin <WaterLin@ymail.invalid> writes:

> I try to use nXhtml to edit PHP, CSS, XHtml, Javascript codes in
> Emacs23. I installed nXhtml successfully, but I find that the color
> theme of nXhtml conflicts with my own Emacs theme. It makes that the PHP
> mode, CSS mode etc. in nXhtml looks bad.
>
> Can I re-define color of each modes in nXhtml?

Put your cursor in the section you want to change and do
M-x:describe-face, you can then customise it and see the changes in your
custom .el file.

Also note a rather good new release is out to be downloaded from
Lennart's web site. A lot faster and less buggy.



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

* Re: How to redefine color theme of nXhtml?
  2009-10-14 11:57 ` Richard Riley
@ 2009-10-15  2:52   ` Water Lin
  2009-10-15  6:10   ` Water Lin
  1 sibling, 0 replies; 6+ messages in thread
From: Water Lin @ 2009-10-15  2:52 UTC (permalink / raw)
  To: help-gnu-emacs

Richard Riley <rileyrgdev@gmail.com> writes:

> Water Lin <WaterLin@ymail.invalid> writes:
>
>> I try to use nXhtml to edit PHP, CSS, XHtml, Javascript codes in
>> Emacs23. I installed nXhtml successfully, but I find that the color
>> theme of nXhtml conflicts with my own Emacs theme. It makes that the PHP
>> mode, CSS mode etc. in nXhtml looks bad.
>>
>> Can I re-define color of each modes in nXhtml?
>
> Put your cursor in the section you want to change and do
> M-x:describe-face, you can then customise it and see the changes in your
> custom .el file.
>
> Also note a rather good new release is out to be downloaded from
> Lennart's web site. A lot faster and less buggy.
>

Thanks, I got it.

Water Lin

-- 
Water Lin's notes and pencils: http://en.waterlin.org
Email: WaterLin@ymail.com


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

* Re: How to redefine color theme of nXhtml?
  2009-10-14 11:57 ` Richard Riley
  2009-10-15  2:52   ` Water Lin
@ 2009-10-15  6:10   ` Water Lin
  2009-10-15 10:26     ` Lennart Borgman
       [not found]     ` <mailman.8861.1255602391.2239.help-gnu-emacs@gnu.org>
  1 sibling, 2 replies; 6+ messages in thread
From: Water Lin @ 2009-10-15  6:10 UTC (permalink / raw)
  To: help-gnu-emacs

Richard Riley <rileyrgdev@gmail.com> writes:

> Water Lin <WaterLin@ymail.invalid> writes:
>
>> I try to use nXhtml to edit PHP, CSS, XHtml, Javascript codes in
>> Emacs23. I installed nXhtml successfully, but I find that the color
>> theme of nXhtml conflicts with my own Emacs theme. It makes that the PHP
>> mode, CSS mode etc. in nXhtml looks bad.
>>
>> Can I re-define color of each modes in nXhtml?
>
> Put your cursor in the section you want to change and do
> M-x:describe-face, you can then customise it and see the changes in your
> custom .el file.
>
> Also note a rather good new release is out to be downloaded from
> Lennart's web site. A lot faster and less buggy.
>

I can re-define color for each mode now.

But I found a very strange question.

When I open a PHP or html file first time, Emacs will use nXhtml for this
file. But then I open another PHP or html files, Emacs will use php-mode
bu not nXhtml mode for this file.

How strange this is!

Why?

Thanks

Water Lin

-- 
Water Lin's notes and pencils: http://en.waterlin.org
Email: WaterLin@ymail.com


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

* Re: How to redefine color theme of nXhtml?
  2009-10-15  6:10   ` Water Lin
@ 2009-10-15 10:26     ` Lennart Borgman
       [not found]     ` <mailman.8861.1255602391.2239.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Lennart Borgman @ 2009-10-15 10:26 UTC (permalink / raw)
  To: help-gnu-emacs

On Thu, Oct 15, 2009 at 8:10 AM, Water Lin <WaterLin@ymail.invalid> wrote:
>
> But I found a very strange question.
>
> When I open a PHP or html file first time, Emacs will use nXhtml for this
> file. But then I open another PHP or html files, Emacs will use php-mode
> bu not nXhtml mode for this file.
>
> How strange this is!
>
> Why?

This happens because loading some elisp tells Emacs to use a new major
mode for a file extension. In this case php-mode.el probably tells
Emacs to use php-mode for .php-files.

I have done a workaround for this in nXhtml. Which version are you
using? (BTW, everybody using nXhtml should upgrade to the latest
version, 1.97!)

Are you using the php-mode.el that comes with nXhtml or some other version?




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

* Re: How to redefine color theme of nXhtml?
       [not found]     ` <mailman.8861.1255602391.2239.help-gnu-emacs@gnu.org>
@ 2009-10-19  7:13       ` Water Lin
  0 siblings, 0 replies; 6+ messages in thread
From: Water Lin @ 2009-10-19  7:13 UTC (permalink / raw)
  To: help-gnu-emacs

Lennart Borgman <lennart.borgman@gmail.com> writes:

> On Thu, Oct 15, 2009 at 8:10 AM, Water Lin <WaterLin@ymail.invalid> wrote:
>>
>> But I found a very strange question.
>>
>> When I open a PHP or html file first time, Emacs will use nXhtml for this
>> file. But then I open another PHP or html files, Emacs will use php-mode
>> bu not nXhtml mode for this file.
>>
>> How strange this is!
>>
>> Why?
>
> This happens because loading some elisp tells Emacs to use a new major
> mode for a file extension. In this case php-mode.el probably tells
> Emacs to use php-mode for .php-files.
>
> I have done a workaround for this in nXhtml. Which version are you
> using? (BTW, everybody using nXhtml should upgrade to the latest
> version, 1.97!)
>
> Are you using the php-mode.el that comes with nXhtml or some other version?
>
>

Thanks for your kindly reminder. After I upgrade to the latest version
1.97, the problem is fixed now.

Thanks

Water Lin

-- 
Water Lin's notes and pencils: http://en.waterlin.org
Email: WaterLin@ymail.com


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

end of thread, other threads:[~2009-10-19  7:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-14 10:25 How to redefine color theme of nXhtml? Water Lin
2009-10-14 11:57 ` Richard Riley
2009-10-15  2:52   ` Water Lin
2009-10-15  6:10   ` Water Lin
2009-10-15 10:26     ` Lennart Borgman
     [not found]     ` <mailman.8861.1255602391.2239.help-gnu-emacs@gnu.org>
2009-10-19  7:13       ` Water Lin

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).