> Wherever the files goes after C-x C-f ~/.emacs and then C-x C-s is where > emacs thinks your home directory is. I would just go with that. It's > normally in %appdata%, but it won't be there until you create it and save > it.
yes, this is better than my #2 > Robert? Is that all you have in your .emacs? I am looking to create > one from scratch. Here is my entire .emacs file, which is extremely basic but got me up and running at least: -------------------------- (setq swank-clojure-extra-classpaths '()) (add-to-list 'swank-clojure-extra-classpaths "C:/Program Files/Clojure Box/clojure/clojure.jar") (add-to-list 'swank-clojure-extra-classpaths "C:/Program Files/Clojure Box/clojure-contrib/target/clojure-contrib-1.0-SNAPSHOT.jar") (add-to-list 'swank-clojure-extra-classpaths "C:/Program Files/Clojure Box/compojure/deps/jetty-6.1.16.jar") (add-to-list 'swank-clojure-extra-classpaths "C:/Program Files/Clojure Box/compojure/deps/jetty-util-6.1.16.jar") (add-to-list 'swank-clojure-extra-classpaths "C:/Program Files/Clojure Box/compojure/deps/servlet-api-2.5-20081211.jar") (add-to-list 'swank-clojure-extra-classpaths "C:/Program Files/Clojure Box/compojure/deps/commons-codec-1.3.jar") (add-to-list 'swank-clojure-extra-classpaths "C:/Program Files/Clojure Box/compojure/deps/commons-fileupload-1.2.1.jar") (add-to-list 'swank-clojure-extra-classpaths "C:/Program Files/Clojure Box/compojure/deps/commons-io-1.4.jar") (add-to-list 'swank-clojure-extra-classpaths "C:/Program Files/Clojure Box/compojure/compojure.jar") (add-to-list 'swank-clojure-extra-classpaths "C:/Dev/user/libs/postgresql-8.3-604.jdbc4.jar") (add-to-list 'swank-clojure-extra-classpaths "C:/Dev/technomancy-clojure-http-client/src") (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(cua-mode t nil (cua-base)) '(show-paren-mode t)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) -------------------------- You'll notice the paths are different (I changed it during my first post) but obviously they aren't relevant. A big problem I had was getting versions of Clojure, Contrib, Compojure, Enlive, HttpClient, etc. that all play well with each other. I'd frequently have a version of Compojure/Enlive/HttpClient that was dependent on one or another Contrib version, etc. A quick trick I learned was to just check out Compojure from git, run the ant deps which downloads the dependencies compatible with that version, and just use those because James of Compojure has done the work syncing them all up, so: (add-to-list 'swank-clojure-extra-classpaths "C:/Program Files/Clojure Box/compojure/compojure.jar") (add-to-list 'swank-clojure-extra-classpaths "C:/Program Files/Clojure Box/compojure/deps/clojure.jar") (add-to-list 'swank-clojure-extra-classpaths "C:/Program Files/Clojure Box/compojure/deps/clojure-contrib.jar") But with 1.0 out now I haven't had as many issues. Rob On Thu, Jul 9, 2009 at 5:35 AM, Shawn Hoover<shawn.hoo...@gmail.com> wrote: > > On Wed, Jul 8, 2009 at 2:56 PM, Mani <dumb...@gmail.com> wrote: >> >> Thanks Shawn, Robert. >> From Robert's post, I am bit confused here. I also read that .emacs is >> in %appdata% folder (vista), but all I see is .emacs.d folder (which I >> guess is for the emacs server). I tried creating one "C-x C-f >> ~/.emacs" - under my home-directory (C:\emacs). Should i just create >> a .emacs under %appdata%/.emacs.d OR right under %appdata%? > > Wherever the files goes after C-x C-f ~/.emacs and then C-x C-s is where > emacs thinks your home directory is. I would just go with that. It's > normally in %appdata%, but it won't be there until you create it and save > it. > > For ideas for a .emacs from scratch, you can look at > http://bitbucket.org/shoover/emacs/src/tip/init.el. > > Shawn > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---