unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: GianUberto.Lauri@eng.it (Gian Uberto Lauri)
Cc: help-gnu-emacs@gnu.org
Subject: emacs colors on Sun Workstation
Date: Wed, 1 Oct 2003 09:41:01 +0200	[thread overview]
Message-ID: <16250.34061.117233.681329@mail.eng.it> (raw)
In-Reply-To: <3F797BD1.5000909@unimore.it>

>>>>> "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 
\/

  reply	other threads:[~2003-10-01  7:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-30 12:49 emacs colors on Sun Workstation lorenzo guerrieri
2003-10-01  7:41 ` Gian Uberto Lauri [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16250.34061.117233.681329@mail.eng.it \
    --to=gianuberto.lauri@eng.it \
    --cc=help-gnu-emacs@gnu.org \
    --cc=saint@eng.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).