LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 12-25-2009, 03:39 AM   #1
mandriva2009
Member
 
Registered: Dec 2009
Posts: 36

Rep: Reputation: 15
emacs theme ,


how do I change the theme of emacs and the background color from white to the desired one ??

Thanks
 
Old 12-25-2009, 05:19 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,613
Blog Entries: 1

Rep: Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048
You can get themes packages from here: http://www.emacswiki.org/emacs/ColorTheme
The instructions are in README/INSTALL.

Basically, you need to copy all the .el files to a directory in your emacs lisp path. You can
create one in your ~/ and add it to ~/.emacs

Code:
(setq load-path  (cons (expand-file-name "~/.emacs.d/themes") load-path))
Once you've restart emacs the themes should be available. What you need to do is type:
Alt+x color-theme-select RETURN

You'll get a list of themes that you can try. If you like a theme, place the cursor on a given theme and press 'd' - it will give you the exact name of this particular theme.

To ensure emacs starts with your chosen theme, add the following to ~/.emacs

Code:
(require 'color-theme)
    (color-theme-initialize)
    (color-theme-deep-blue)
In this case my theme is called 'deep-blue'

HTH
 
Old 12-25-2009, 05:24 AM   #3
mandriva2009
Member
 
Registered: Dec 2009
Posts: 36

Original Poster
Rep: Reputation: 15
is there a way to do that through .Xresources files ????
I did that once long time ago through modifing some file called .******* ??

thanks
 
Old 12-25-2009, 05:53 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,613
Blog Entries: 1

Rep: Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048Reputation: 1048
Here's some info about it:
http://www.gnu.org/software/emacs/ma...e-of-Resources
 
Old 12-25-2009, 06:13 AM   #5
mandriva2009
Member
 
Registered: Dec 2009
Posts: 36

Original Poster
Rep: Reputation: 15
I might need an example file to copy and paste it ,since I have no such file here ???

Thanks
 
  


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
LXer: Emacs editing, Pt.5: Shape your Emacs view LXer Syndicated Linux News 0 08-09-2007 08:46 AM
Alt no longer META key when using in-terminal option of Emacs (emacs -nw) frznchckn Linux - Software 1 06-02-2007 03:41 AM
LXer: Emacs tips: Cross-platform Emacs LXer Syndicated Linux News 0 08-17-2006 12:12 AM
LXer: Emacs tips: Customize your Emacs experience LXer Syndicated Linux News 0 08-10-2006 01:21 PM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 08:31 AM


All times are GMT -5. The time now is 01:55 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration