dmn
dmn

Reputation: 71

How to set Emacs theme?

I am new to emacs and wondering how I would get it to load a theme of my choosing (http://lambda.nirv.net/m/files/color-theme-chocolate-rain.el)

I am on ubuntu, and have no idea what I am doing (yet :P) in regards to Emacs, for the most part.

Upvotes: 7

Views: 15712

Answers (3)

HrishiB
HrishiB

Reputation: 61

Download the theme folder or download the '.el' file. Since you are on ubuntu you'll need to copy the '.el' file in to your theme-load path. Or create your custom theme-load path as follows

  • Make a directory ~/.emacs.d/themes
  • Open the '.emacs' file in emacs
  • enter the following line at the end of the file (add-to-list 'custom-theme-load-path "~/.emacs.d/themes")

after copying the '.el' file, add the following line in the .emacs file

(load-theme 'theme name)

e.g. (load-theme 'gotham)

Save the file and restart emacs.

Upvotes: 6

liwp
liwp

Reputation: 6926

This should work (you probably need to change color-theme-tty-dark to color-theme-chocolate-rain:

;; Enable a color theme
(require 'color-theme)
(color-theme-initialize)
(color-theme-tty-dark)

Upvotes: 3

user59634
user59634

Reputation:

Here you go: http://www.nongnu.org/color-theme/.

Upvotes: 1

Related Questions