On Wed, 2007-12-19 at 14:05 -0500, Matt S. wrote:
them out, and hopefully learn something from them.
I am learning the emacs editor along side the rails-emacs el package.
So far I’ve been pretty un-productive, but I am getting better. You
know how in textmate you can hit Cmd-return and it will give you an
indented new-line from wherever you are on the previous line? Is there
a way to accomplish this in emacs? Also, I can’t seem to figure out how
to set the tab indentation to 2 soft spaces. I’ve got (setq tab-width
2) in my emacs file, but it doesn’t seem to effect anything as I am
still tabbing 8 spaces in everything but ruby/erb files.
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
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:
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
–
Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.
http://gnufied.org