all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* colour change in emacs 21.3
@ 2007-06-30  2:23 Sylvan Elhay
  2007-06-30  7:50 ` David Hansen
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Sylvan Elhay @ 2007-06-30  2:23 UTC (permalink / raw)
  To: help-gnu-emacs

Hi

Is there a way to change the display colour of a latex formula or
comment or other fields in emacs 21.3? In emacs 19 I edited the
hilit-19.el file but can't find any comparable fix in 21.3.

I'd be grateful for any help.
Thanks
S

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

* Re: colour change in emacs 21.3
  2007-06-30  2:23 colour change in emacs 21.3 Sylvan Elhay
@ 2007-06-30  7:50 ` David Hansen
  2007-06-30 10:22   ` Sylvan Elhay
  2007-06-30  8:51 ` Peter Dyballa
       [not found] ` <mailman.2835.1183193521.32220.help-gnu-emacs@gnu.org>
  2 siblings, 1 reply; 6+ messages in thread
From: David Hansen @ 2007-06-30  7:50 UTC (permalink / raw)
  To: help-gnu-emacs

On Sat, 30 Jun 2007 11:53:28 +0930 (CST) Sylvan Elhay wrote:

> Is there a way to change the display colour of a latex formula or
> comment or other fields in emacs 21.3? In emacs 19 I edited the
> hilit-19.el file but can't find any comparable fix in 21.3.
>
> I'd be grateful for any help.

M-x customize-apropos-faces RET font-lock RET

for the most important faces.  Or M-x customize-face (to find out the
faces at point look at the output of C-u C-x =).

David

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

* Re: colour change in emacs 21.3
  2007-06-30  2:23 colour change in emacs 21.3 Sylvan Elhay
  2007-06-30  7:50 ` David Hansen
@ 2007-06-30  8:51 ` Peter Dyballa
       [not found] ` <mailman.2835.1183193521.32220.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2007-06-30  8:51 UTC (permalink / raw)
  To: Sylvan Elhay; +Cc: help-gnu-emacs


Am 30.06.2007 um 04:23 schrieb Sylvan Elhay:

> Is there a way to change the display colour of a latex formula or
> comment or other fields in emacs 21.3? In emacs 19 I edited the
> hilit-19.el file but can't find any comparable fix in 21.3.

How about this? You open a LaTeX file and position the cursor on some  
colour you don't like or want to change. Then type C-u C-x = – a new  
window opens that also describes the properties of the word. By  
pressing RET on the underlined word you get a more detailed  
description that you can customise.


The use of colours is defined in lisp/textmodes/tex-mode.el – in GNU  
Emacs 22.

--
Greetings

   Pete

Encryption:  A powerful algorithmic encoding technique employed in  
the creation
                      of computer manuals.

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

* Re: colour change in emacs 21.3
       [not found] ` <mailman.2835.1183193521.32220.help-gnu-emacs@gnu.org>
@ 2007-06-30  9:20   ` Johan Bockgård
  0 siblings, 0 replies; 6+ messages in thread
From: Johan Bockgård @ 2007-06-30  9:20 UTC (permalink / raw)
  To: help-gnu-emacs

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> Am 30.06.2007 um 04:23 schrieb Sylvan Elhay:
>
>> Is there a way to change the display colour of a latex formula or
>> comment or other fields in emacs 21.3? In emacs 19 I edited the
>> hilit-19.el file but can't find any comparable fix in 21.3.
>
> How about this? You open a LaTeX file and position the cursor on
> some colour you don't like or want to change. Then type C-u C-x =

`M-x list-text-properties-at' in Emacs 21.

-- 
Johan Bockgård

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

* Re: colour change in emacs 21.3
  2007-06-30  7:50 ` David Hansen
@ 2007-06-30 10:22   ` Sylvan Elhay
  2007-06-30 12:13     ` Peter Dyballa
  0 siblings, 1 reply; 6+ messages in thread
From: Sylvan Elhay @ 2007-06-30 10:22 UTC (permalink / raw)
  To: David Hansen; +Cc: help-gnu-emacs

Thanks for the help.

M-x customize-apropos-faces RET font-lock RET

and

M-x customize-face

with point on a formula character returned "none."

Using C-u C-x = gave me just

   character: a (0141, 97, 0x61)
     charset: ascii (ASCII (ISO646 IRV))
  code point: 97
      syntax: word
    category: a:ASCII   l:Latin 
buffer code: 0x61
   file code: 0x61 (encoded by coding system undecided-dos)
        font:
             -outline-Courier New-normal-r-normal-normal-13-97-96-96-c-80-iso8859-1

Does this tell me the face used? Apologies if this is naive - I'm new
to faces.

Thanks
Sylvan


At 09:50 on Sat, 30 Jun 2007, David Hansen wrote:

> Date: Sat, 30 Jun 2007 09:50:35 +0200
> From: David Hansen <david.hansen@gmx.net>
> To: help-gnu-emacs@gnu.org
> Subject: Re: colour change in emacs 21.3
> 
> On Sat, 30 Jun 2007 11:53:28 +0930 (CST) Sylvan Elhay wrote:
>
>> Is there a way to change the display colour of a latex formula or
>> comment or other fields in emacs 21.3? In emacs 19 I edited the
>> hilit-19.el file but can't find any comparable fix in 21.3.
>>
>> I'd be grateful for any help.
>
> M-x customize-apropos-faces RET font-lock RET
>
> for the most important faces.  Or M-x customize-face (to find out the
> faces at point look at the output of C-u C-x =).
>
> David
>
>
>
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>

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

* Re: colour change in emacs 21.3
  2007-06-30 10:22   ` Sylvan Elhay
@ 2007-06-30 12:13     ` Peter Dyballa
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2007-06-30 12:13 UTC (permalink / raw)
  To: Sylvan Elhay; +Cc: David Hansen, help-gnu-emacs


Am 30.06.2007 um 12:22 schrieb Sylvan Elhay:

> Does this tell me the face used? Apologies if this is naive - I'm new
> to faces.

No. Obviously in stable GNU Emacs 21.x C-u C-x = does not include  
information about faces used. A 22 version output looks like:

	  character: c (0143, 99, 0x63, U+0063)
	    charset: ascii (ASCII (ISO646 IRV))
	 code point: 99
	     syntax: w 	which means: word
	   category: a:ASCII   l:Latin
	buffer code: 0x63
	  file code: 0x63 (encoded by coding system iso-latin-9-unix)
	    display: by this font (glyph code)
	     -B&H-LucidaTypewriter-Bold-R-Normal-Sans-10-100-75-75-M-60- 
ISO8859-1 (0x63)
	
	There are text properties here:
	  face                 [(font-latex-bold-face font-latex-sedate-face)]
	  fontified            t

You obviously need to use describe-text-properties or list-text- 
properties-at. The remainder procedure is the same: RET on the face  
description, then RET on the customise hyper-link, then  
customisation, saving for the session to experiment with it, optional  
changes and saves, finally saving it into ~/.emacs.

--
Greetings

   Pete

"I love deadlines. I love the whooshing noise they make as they go by."
                                            (Douglas Adams)

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

end of thread, other threads:[~2007-06-30 12:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-30  2:23 colour change in emacs 21.3 Sylvan Elhay
2007-06-30  7:50 ` David Hansen
2007-06-30 10:22   ` Sylvan Elhay
2007-06-30 12:13     ` Peter Dyballa
2007-06-30  8:51 ` Peter Dyballa
     [not found] ` <mailman.2835.1183193521.32220.help-gnu-emacs@gnu.org>
2007-06-30  9:20   ` Johan Bockgård

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.