From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: GianUberto.Lauri@eng.it (Gian Uberto Lauri) Newsgroups: gmane.emacs.help Subject: emacs colors on Sun Workstation Date: Wed, 1 Oct 2003 09:41:01 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <16250.34061.117233.681329@mail.eng.it> References: <3F797BD1.5000909@unimore.it> Reply-To: saint@eng.it NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1064998084 3417 80.91.224.253 (1 Oct 2003 08:48:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2003 08:48:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 01 10:48:02 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A4ceQ-0005i2-00 for ; Wed, 01 Oct 2003 10:48:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A4cdk-0003Un-KY for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Oct 2003 04:47:20 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A4cdH-0003RC-Fn for help-gnu-emacs@gnu.org; Wed, 01 Oct 2003 04:46:51 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A4cck-00037N-PD for help-gnu-emacs@gnu.org; Wed, 01 Oct 2003 04:46:49 -0400 Original-Received: from [217.169.111.37] (helo=mx3.fabbricadigitale.it) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A4cck-000363-5b for help-gnu-emacs@gnu.org; Wed, 01 Oct 2003 04:46:18 -0400 Original-Received: from localhost (mx3.fabbricadigitale.it [127.0.0.1]) by mx3.fabbricadigitale.it (MM4Csmtpd) with ESMTP id 25EBD760F20 for ; Wed, 1 Oct 2003 10:43:58 +0200 (CEST) Original-Received: from mx-dc2.mx.regione.veneto.it (host29-81.pool8020.interbusiness.it [80.20.81.29]) by mx3.fabbricadigitale.it (MM4Csmtpd) with SMTP id 332127606EA for ; Wed, 1 Oct 2003 09:37:13 +0200 (CEST) Original-Received: FROM mail1.mx.regione.veneto.it BY mx-dc2.mx.regione.veneto.it ; Wed Oct 01 09:37:00 2003 +0200 Original-Received: from [192.168.150.254] by mail1.mail.regione.veneto.it (NTMail 7.00.0018/NU7795.00.48ac7402) with ESMTP id hvxlwbaa for help-gnu-emacs@gnu.org; Wed, 1 Oct 2003 09:36:59 +0200 Original-To: guerrieri.lorenzo@unimore.it In-Reply-To: <3F797BD1.5000909@unimore.it> X-Mailer: VM 7.07 under Emacs 21.2.1 X-attribution: CC X-Home-Page: http://www.gest.unipd.it/~saint X-Zippy: If this is the DATING GAME I want to know your FAVORITE PLANET! Do I get th' MICROWAVE MOPED? X-Razor-id: ec5bcecb10eddc154eeba0aa7389627f74cbe5c0 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12912 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12912 >>>>> "lg" == lorenzo guerrieri 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 \/