Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Help would be hugely appreciated :)

Here is what I have done:

  • Downloaded the latest release of GNU Emacs and installed it on Windows 7
  • Completed the tutorial
  • Set my home path as C:\Users\User, so I have a .emacs at C:\Users\User\.emacs, and there is a folder at C:\Users\User\.emacs.d\

  • Downloaded this and wasn't entirely sure where to put it - I extracted the 'technomancy-emacs-starter-kit-b30f368' directory (just the contents) into my .emacs.d directory

Would it be useful for me to keep that starter kit package? And would it conflict with the package that I am planning to install?

  • I tried enabling org-mode by copying the suggested code into my emacs file. (It didn't seem to change anything but org-mode does seem to work - with and without this code in my .emacs file)

So then for the color-theme package, I extracted 'color-theme-6.6.0' (the directory) into .emacs.d, and then tried adding this to my .emacs file (with numerous variations, including back and forward slashes, and with full directory paths, and with ~/, etc).

However, I could not get it to work.

(add-to-list 'load-path "/color-theme-6.6.0/color-theme.el")
(require 'color-theme)
(eval-after-load "color-theme"


What I am aiming to do:

I have been searching for the last 45 minutes for guides and help for my issues, and trying out different solutions and guessing at solutions, however it seems that most of the guides assume some basic knowledge, most of which I lack - I have been using Notepad++ on Windows as my text editor.

Edit: In reference to @MyCubeIsMyCell

Thanks for the help :) I decided to go with the GNU Emacs, as it seems to be updated more and more compatible with other apps - but correct me if I am wrong - are there any downsides to EmacsW32? Sorry about that user.emacs thing - the text formatting function of this site requires it to be {double slash.emacs}\\.emacs, which I was unaware of! - they are both meant to be C:\Users\user.emacs, etc. I set my home to C:\Users\User, and my packages are in %home%.emacs.d\vendor. Does the ~ reference still apply to Windows?

My .emacs is now:

(require 'org-install)
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(setq org-log-done t)

(setq load-path (append load-path (list "~/.emacs.d/vendor")))
(setq load-path (append load-path (list "~/.emacs.d/vendor/color-theme")))

(require 'color-theme)

This gives an error again, and I tried with different ways of typing the load-path again.

Symbol's function definition is void: color-theme-example

Thanks again

share|improve this question
up vote 5 down vote accepted

You might want to have a look at Emacs W32. Has some nice customizations for windows.

As for getting color theme working... I won't try to convert things to your current install, seems a few things are off there (file should just be .emacs - not User.emacs, same for .emacs.d directory). Instead I'll just tell you how I have things setup, shouldn't be too hard to translate if you want to keep your current config.

I find it easiest to just create a C:\home directory and set a HOME enviornment variable to point to that directory. Place your .emacs file in there. A .emacs.d directory will be created. I also like to create a directory named emacs_site_lisp in the home folder; C:\home\emacs_site_lisp. I place any and all packages or files under there for easy reference.

Put the color-theme directory in the emacs_site_lisp folder.

Then in my .emacs I have:

(setq load-path (append load-path (list "~/emacs_site_lisp")))
(setq load-path (append load-path (list "~/emacs_site_lisp/color-theme-6.6.0")))

(require 'color-theme)

Note that ~ references your home directory if not familiar with *nix.

That should work as a minimal .emacs - odds are you'll have a lot more stuff in there soon as you try different things out & tweak different settings, plenty of example .emacs to be found... just search on google: filetype:emacs

Good Luck.

share|improve this answer
Many thanks for the help, it is much appreciated :) I have written a response to this post as an edit to my question, as it was too long to fit! – tobeannounced Jul 24 '10 at 8:43
looks like you're getting closer - change (color-theme-example) to (color-theme-hober) or just remove it and do M-x color-theme-select after you start. Yes, ~ does work on windows if the HOME env variable is set. As for EmacsW32 - it may not be the absolute latest... but the changes to emacsclient are a fair tradeoff, lets you keep emacs always running in the background. – myCubeIsMyCell Jul 24 '10 at 15:27
Awesome, thanks again :) Didn't work when I changed it to hober, but removing it and using the command worked fine - and I now have it set to tango in my .emacs. Any opinion on whether I should be using the emacs starter kit? – tobeannounced Jul 25 '10 at 4:26
I'm not really familiar with emacs starter kit... took a quick look & seems some of the keybindings might be useful, don't know if it'll make the learning curve any more or less steep. No harm in trying. – myCubeIsMyCell Jul 26 '10 at 0:12

You might also like this ...

Paste in color theme .el code and it will let you edit it visually and save it... also have a look at - it will give you randomly generated themes for Emacs (also Vim & TextMate.)

share|improve this answer
Wow, thanks a ton for that link, very useful :) Will definitely use that later. – tobeannounced Aug 24 '10 at 7:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .