# Emacs setup

**URL:** <https://www.ruby-forum.com/t/emacs-setup/89092>\
**Category:** Rails\
**Created:** [March 17, 2007, 6:09am UTC](https://www.ruby-forum.com/t/emacs-setup/89092 "2007-03-17T06:09:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![technodolt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e99b99/32.png) [@technodolt](https://www.ruby-forum.com/u/technodolt)\
**Post date:** [March 17, 2007, 6:09am UTC](https://www.ruby-forum.com/t/emacs-setup/89092/1 "2007-03-17T06:09:29Z")

</div>

I have never used emacs before.  
I have a windows box.  
Can anyone point me at some kind of tutorial for setting up emacs with  
all  
the nifty Rails tools you can get for it?

Thanks.

---

<div class="post-metadata">

**Author:** ![technodolt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e99b99/32.png) [@technodolt](https://www.ruby-forum.com/u/technodolt)\
**Post date:** [March 17, 2007, 1:09pm UTC](https://www.ruby-forum.com/t/emacs-setup/89092/2 "2007-03-17T13:09:54Z")

</div>

On 3/17/07, Luke I. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I have never used emacs before.  
> I have a windows box.  
> Can anyone point me at some kind of tutorial for setting up emacs with all  
> the nifty Rails tools you can get for it?
> 
> Thanks.

Ok here is my .emacs file:

(setq load-path  
(append (list nil “~/lisp/”  
“~/lisp/arorem/”  
“~/lisp/custom/”  
“~/lisp/nxml\_mode/”  
“~/lisp/rinari/”  
“~/lisp/rinari/rhtml”  
“~/lisp/icicles”  
“~/lisp/shared/”)  
load-path))

;; here let’s load everything in proper order here  
(load “setup.el”)  
(load “01bm.el”)  
(load “02ruby\_mode.el”)  
(load “03rails.el”)  
(load “04nxml.el”)  
(load “05ido.el”)  
;;(load “07vm.el”)  
(load “08fri.el”)  
(load “09org.el”)  
(load “10sql.el”)  
(load “11erlang.el”)  
(load “12rd.el”)  
(load “13rcode.el”)  
(load “last.el”)  
(load “my\_snippets.el”)

(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.  
'(bm-persistent-face ((((class color) (background light))  
(:background “MistyRose” :foreground “Black”))))  
'(font-lock-comment-face ((((class color) (min-colors 88) (background  
light)) (:foreground “grey64” :slant italic :family  
“-_-helvetica-medium-_-_-_-12-_-_-_-_-_-_-\*”)))))  
(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.  
)

And You can download ready to run/work lisp files from  
[http://syncnotes.googlecode.com/files/lisp.tar.bz2](http://syncnotes.googlecode.com/files/lisp.tar.bz2)

The caveats are, I have obviously customized emacs, to suit my taste  
of key bindings, and hence for me Control-W is backward word delete,  
and region kill is C-X,C-K

Other set of shortcuts are basically inspired from here:

> **[steve yegge - effective-emacs](https://sites.google.com/site/steveyegge2/effective-emacs)**
>
> Effective Emacs 
> Stevey's Drunken Blog Rants™
> 10 Specific Ways to Improve Your Productivity With Emacs
> Emacs is the world's best text editor. It's not just the best for editing program source; it's the best for any kind of text-editing. Mastering...

Unzip the archive and put it under directory ~/lisp . If you in home,  
it would automatically create that directory for you.

lisp  
|  
|---- rinari  
|---- xxxx

And put the above .emacs file in your home directory and restart your  
emacs. For using above packages, you must be running \> Emacs 22

Snippets, ruby debugging, control/view/testcase switching, console,  
irb, and many other things should work out of the box.

All the best

## – gnufied

There was only one Road; that it was like a great river: its springs  
were at every doorstep, and every path was its tributary.  
[http://people.inxsasia.com/~hemant](http://people.inxsasia.com/~hemant)
