* Colors in emacs?
@ 2004-10-29 17:13 JS
2004-10-29 20:19 ` kgold
0 siblings, 1 reply; 5+ messages in thread
From: JS @ 2004-10-29 17:13 UTC (permalink / raw)
How do I get colors to work in emacs when you write "fun, if then else" etc?
I have also heard that emacs makes purple parenteses if there is a wrong
number of them, how do I make this work?
Johs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Colors in emacs?
2004-10-29 20:19 ` kgold
@ 2004-10-29 20:16 ` JS
2004-10-29 22:10 ` Tassilo Horn
0 siblings, 1 reply; 5+ messages in thread
From: JS @ 2004-10-29 20:16 UTC (permalink / raw)
On Fri, 29 Oct 2004 20:19:14 +0000, kgold wrote:
> "JS" <dsa.@asdf.com> writes:
>> How do I get colors to work in emacs when you write "fun, if then else" etc?
>> I have also heard that emacs makes purple parenteses if there is a wrong
>> number of them, how do I make this work?
>
> In some versions of emacs, colors work "out of the box". In others,
> you have to turn them on, and they might not work in terminal mode.
>
> Try this:
>
> ; turn on font lock in all modes which support it
>
> (require 'font-lock)
> (global-font-lock-mode 1)
> (setq font-lock-support-mode 'lazy-lock-mode)
>
> ; do as much colorizing as possible
>
> (setq font-lock-maximum-decoration t)
> (require 'ctypes)
> (ctypes-auto-parse-mode 1)
>
>
>
>
> For parenthesis matching stuff:
>
> ; parenthesis matching
> (require 'mic-paren) ; loading
> (paren-activate) ; activating
> (setq paren-highlight-offscreen t)
> (setq paren-sexp-mode 'mismatch)
>
>
>
> Once it's working, you can create colors you like.
Do I just add these line to the .emacs file somewhere I like?
Johs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Colors in emacs?
2004-10-29 17:13 Colors in emacs? JS
@ 2004-10-29 20:19 ` kgold
2004-10-29 20:16 ` JS
0 siblings, 1 reply; 5+ messages in thread
From: kgold @ 2004-10-29 20:19 UTC (permalink / raw)
"JS" <dsa.@asdf.com> writes:
> How do I get colors to work in emacs when you write "fun, if then else" etc?
> I have also heard that emacs makes purple parenteses if there is a wrong
> number of them, how do I make this work?
In some versions of emacs, colors work "out of the box". In others,
you have to turn them on, and they might not work in terminal mode.
Try this:
; turn on font lock in all modes which support it
(require 'font-lock)
(global-font-lock-mode 1)
(setq font-lock-support-mode 'lazy-lock-mode)
; do as much colorizing as possible
(setq font-lock-maximum-decoration t)
(require 'ctypes)
(ctypes-auto-parse-mode 1)
For parenthesis matching stuff:
; parenthesis matching
(require 'mic-paren) ; loading
(paren-activate) ; activating
(setq paren-highlight-offscreen t)
(setq paren-sexp-mode 'mismatch)
Once it's working, you can create colors you like.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Colors in emacs?
2004-10-29 20:16 ` JS
@ 2004-10-29 22:10 ` Tassilo Horn
2004-11-18 22:48 ` yush
0 siblings, 1 reply; 5+ messages in thread
From: Tassilo Horn @ 2004-10-29 22:10 UTC (permalink / raw)
JS <asd@asd.com> writes:
> Do I just add these line to the .emacs file somewhere I like?
Exactly.
Regards,
Tassilo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Colors in emacs?
2004-10-29 22:10 ` Tassilo Horn
@ 2004-11-18 22:48 ` yush
0 siblings, 0 replies; 5+ messages in thread
From: yush @ 2004-11-18 22:48 UTC (permalink / raw)
What does that mean?
Tassilo Horn wrote:
> JS <asd@asd.com> writes:
>
>
>>Do I just add these line to the .emacs file somewhere I like?
>
>
> Exactly.
>
> Regards,
> Tassilo
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-11-18 22:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-29 17:13 Colors in emacs? JS
2004-10-29 20:19 ` kgold
2004-10-29 20:16 ` JS
2004-10-29 22:10 ` Tassilo Horn
2004-11-18 22:48 ` yush
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).