From: Christian Neukirchen Date: 2006-02-18T05:03:43+09:00 Subject: Re: Rubuntu LiveCD I need vim/emacs configs! Phil Hagelberg writes: > On Fri, 2006-02-17 at 06:12 +0900, Ezra Zygmuntowicz wrote: >> Other thoughts or suggestions? I'm all ears at this point > > Awesome idea. > > Make sure it has an .irbrc with require 'irb/completion' in it. Make > sure it includes Ruby-GNOME2. Ruby-Gecko[1] as the default browser would > be a nice touch, if not the most effective choice. =D > > Also, ruby-electric[2] is a nice emacs mode. chris2 has some nifty ruby > stuff[3] that requires emacs22 if you are thinking of going that route. Wow, I completely forgot I wrote that. :-P > I would advise against using MMM-mode for ERB by default since it seems > to usually be more trouble than it's worth. CSS-mode is worth including. I have no trouble with MMM-mode here, this is the relevant part of my .emacs (stolen together from the web): ;; for Rails ;; 17jan2006 +chris+ (require 'mmm-mode) (require 'mmm-auto) (setq mmm-global-mode 'maybe) (setq mmm-submode-decoration-level 2) (set-face-background 'mmm-output-submode-face "Grey30") (set-face-background 'mmm-code-submode-face "Grey40") (set-face-background 'mmm-comment-submode-face "Grey50") (mmm-add-classes '((erb-code :submode ruby-mode :match-face (("<%#" . mmm-comment-submode-face) ("<%=" . mmm-output-submode-face) ("<%" . mmm-code-submode-face)) :front "<%[#=]?" :back "%>" :insert ((?% erb-code nil @ "<%" @ " " _ " " @ "%>" @) (?# erb-comment nil @ "<%#" @ " " _ " " @ "%>" @) (?= erb-expression nil @ "<%=" @ " " _ " " @ "%>" @)) ))) (add-hook 'html-mode-hook (lambda () (setq mmm-classes '(erb-code)) (mmm-mode-on))) (add-to-list 'auto-mode-alist '("\\.rhtml$" . html-mode)) (define-key mmm-mode-map (kbd "C-c C-c") 'mmm-parse-buffer) One thing possibly interesting is this: ;; for test/unit ;; 12nov2004 +chris+ (add-to-list 'compilation-error-regexp-alist '("test[a-zA-Z0-9_]*([A-Z][a-zA-Z0-9_]*) \\[\\(.*\\):\\([0-9]+\\)\\]:" 1 2)) But I'm not sure that regexp still works... > You can see my .emacs[4], but it's nothing special. > > -Phil Hagelberg -- Christian Neukirchen http://chneukirchen.org