Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

selecting a colour theme in the .emacs configuration

Tags:

emacs

GNU Emacs 23.1.1 Fedora 13

I can select the colour theme by

M-x color-theme-select

I scroll down and select the

clarity and beauty

This works ok. However, in my configuration I am not sure how to select this. This is what I have, but doesn't work.

(require 'color-theme)
(color-theme-ClarityandBeauty)

many thanks for any suggestions,

like image 681
ant2009 Avatar asked Nov 25 '25 21:11

ant2009


2 Answers

This is the configuration I have (from the color-theme documentation):

(add-to-list 'load-path "C:/opt/elisp/color-theme") ;; The path to color-theme.el
(require 'color-theme)
(eval-after-load "color-theme"
  '(progn
     (color-theme-initialize)
     (color-theme-subtle-hacker)))  ;; This is the theme you want to use.
like image 143
kjfletch Avatar answered Nov 28 '25 15:11

kjfletch


M-x color-theme-cl<Tab> shows me that the name is color-theme-clarity, which means you should have this in your .emacs:

(color-theme-clarity)
like image 44
jamessan Avatar answered Nov 28 '25 15:11

jamessan