all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs colors on Sun Workstation
@ 2003-09-30 12:49 lorenzo guerrieri
  2003-10-01  7:41 ` Gian Uberto Lauri
  0 siblings, 1 reply; 4+ messages in thread
From: lorenzo guerrieri @ 2003-09-30 12:49 UTC (permalink / raw)


Hallo !
Here's my problem:
I downloaded and installed Emacs version 21.2 on my Sun Workstation, 
Operating System SunOS Release 5.8
When I open Emacs window there are no colors ! The background is grey 
and all the characters are black. I am interested in particular of the 
possibilities to have different colors for Fortran files (fortran 
commands, comment lines, strings,ecc ...).
Thanks !!
Lorenzo

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

* Re: emacs colors on Sun Workstation
       [not found] <mailman.898.1064929488.21628.help-gnu-emacs@gnu.org>
@ 2003-09-30 14:21 ` Noufal Ibrahim
  2003-09-30 14:42   ` lorenzo guerrieri
  0 siblings, 1 reply; 4+ messages in thread
From: Noufal Ibrahim @ 2003-09-30 14:21 UTC (permalink / raw)


lorenzo guerrieri <guerrieri.lorenzo@unimore.it> writes:


[...]
> When I open Emacs window there are no colors ! The background is grey
> and all the characters are black. I am interested in particular of the
> possibilities to have different colors for Fortran files (fortran
> commands, comment lines, strings,ecc ...).

[...]

That should happen if you turn on font-locking. with an M-x
global-font-lock-mode or a (global-font-lock-mode t) in your .emacs
file.


-- 
~noufal 

There are no accidents whatsoever in the universe.
		-- Baba Ram Dass

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

* Re: emacs colors on Sun Workstation
  2003-09-30 14:21 ` emacs colors on Sun Workstation Noufal Ibrahim
@ 2003-09-30 14:42   ` lorenzo guerrieri
  0 siblings, 0 replies; 4+ messages in thread
From: lorenzo guerrieri @ 2003-09-30 14:42 UTC (permalink / raw)
  Cc: help-gnu-emacs


[-- Attachment #1.1: Type: text/plain, Size: 573 bytes --]

Thank you very much Ibrahim !!!!
Now all seems ok !
bye
Lorenzo

Noufal Ibrahim wrote:

>lorenzo guerrieri <guerrieri.lorenzo@unimore.it> writes:
>
>
>[...]
>
>>When I open Emacs window there are no colors ! The background is grey
>>and all the characters are black. I am interested in particular of the
>>possibilities to have different colors for Fortran files (fortran
>>commands, comment lines, strings,ecc ...).
>>
>
>[...]
>
>That should happen if you turn on font-locking. with an M-x
>global-font-lock-mode or a (global-font-lock-mode t) in your .emacs
>file.
>
>


[-- Attachment #1.2: Type: text/html, Size: 968 bytes --]

[-- Attachment #2: Type: text/plain, Size: 151 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

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

* emacs colors on Sun Workstation
  2003-09-30 12:49 lorenzo guerrieri
@ 2003-10-01  7:41 ` Gian Uberto Lauri
  0 siblings, 0 replies; 4+ messages in thread
From: Gian Uberto Lauri @ 2003-10-01  7:41 UTC (permalink / raw)
  Cc: help-gnu-emacs

>>>>> "lg" == lorenzo guerrieri <guerrieri.lorenzo@unimore.it> writes:

lg> Hallo !
lg> Here's my problem:
lg> I downloaded and installed Emacs version 21.2 on my Sun Workstation, 
lg> Operating System SunOS Release 5.8
lg> When I open Emacs window there are no colors ! The background is grey 
lg> and all the characters are black. 

Hmmm...  Usually the plain  (no customization) True One Editor (Emacs)
has a  white background if I'm not  wrong.  I know that  in some Linux
distributions it's set to a dark green background with wheat text, but
gray background  with black text looks  like XEmacs (aka  the True Two
Editor :) ).

Anyway, you can put these in your .emacs:

(setq default-frame-alist '((cursor-color . "gold")
  			    (foreground-color . "black")
  			    (background-color . "#feffD9")
  			    (height . 30)
  			    (width . 80)
  			    ))
(set-background-color "#feffD9")
(set-foreground-color "black")

The  first statement  defines the  standard appearance  of  new frames
(80x30, black text on a pale yellow shade and a gold cursor)

The  second sets the  background color  of the  current frame  and the
third the text color of the same frame.

You can set  even mouse pointer, modeline and  scrollbar color and get
your own simple'n'elegant (or angry fruit salad) color scheme.

lg> I am interested in particular of the 
lg> possibilities to have different colors for Fortran files (fortran 
lg> commands, comment lines, strings,ecc ...).

That's quite easy. These lines in your .emacs

(global-font-lock-mode t)
(setq font-lock-maximum-decoration t)

tell Emacs  to start font-lock  whenever the current mode  supports it
and to use the most colorful decoration.

FORTRAN  should be  automatically recognized  by Emacs  when  the file
extension is .f .

If this "electric"  behaviour is not set you can add  to your .emacs a
statement like this:

(setq auto-mode-alist
       (cons '("\\.f$" . fortran-mode) auto-mode-alist))

Feel free to contact me directly if you need some more advice.

 /\            ___
/___/\__|_|\_|__|___Gian Uberto Lauri_____________________
  //--\ | | \|  |   Integralista GNUslamico e fancazzista 
\/

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

end of thread, other threads:[~2003-10-01  7:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.898.1064929488.21628.help-gnu-emacs@gnu.org>
2003-09-30 14:21 ` emacs colors on Sun Workstation Noufal Ibrahim
2003-09-30 14:42   ` lorenzo guerrieri
2003-09-30 12:49 lorenzo guerrieri
2003-10-01  7:41 ` Gian Uberto Lauri

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.