LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-16-2004, 08:42 PM   #1
ljr2600
LQ Newbie
 
Registered: Aug 2004
Posts: 22

Rep: Reputation: 15
Editing Emacs colors?


I'm quiet stumped. I do not have a .Xdefaults file in my home directory. And when I modify the .Xdefults in /root, nothing happens.

All I want to do is modify the background and foreground colors of emacs!

I'm using Mandrake 10.0 with KDE, if it helps at all.
 
Old 09-16-2004, 09:07 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
man emacs
 
Old 09-16-2004, 11:05 PM   #3
ljr2600
LQ Newbie
 
Registered: Aug 2004
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for the reply, but is there any way for it to automatically open with a specific background and foreground every time, with out typing -bg (color) fg(color), basically change the default colors.
 
Old 09-17-2004, 04:48 AM   #4
jrg
LQ Newbie
 
Registered: Apr 2004
Location: London, UK
Distribution: Mandriva 2006
Posts: 9

Rep: Reputation: 0
Quote:
Originally posted by ljr2600
Thanks for the reply, but is there any way for it to automatically open with a specific background and foreground every time, with out typing -bg (color) fg(color), basically change the default colors.
In XEmacs (I think GNU Emacs is similar) click on Options -> Edit faces... Edit the properties of the "default" face and then save your changes by right-clicking on the "[State]" keyword.
 
Old 09-18-2004, 06:50 AM   #5
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
Quote:
Originally posted by ljr2600
Thanks for the reply, but is there any way for it to automatically open with a specific background and foreground every time, with out typing -bg (color) fg(color), basically change the default colors.
hi there,

you can add something like that to your .emacs file.
Code:
(set-background-color "black")
(set-foregroung-color  "white)
this will make the things automatic.

regards

slackie1000
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get colors in emacs and vim pranith Linux - Newbie 1 02-11-2005 12:35 AM
regarding colors in vim and emacs pranith Linux - Newbie 0 02-10-2005 03:10 AM
How do you change the colors in emacs? ArmedCoder Linux - Software 1 10-26-2003 07:12 PM
Environment Variables: xterm, ls, mc, and emacs colors kulitpuro Slackware 4 09-01-2003 01:06 AM
emacs colors ZoZo Linux - Software 1 10-29-2002 03:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration