From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: snack Newsgroups: gmane.emacs.help Subject: Re: problems configuring xemacs for rails on ubuntu Date: Sat, 8 Mar 2008 18:22:09 -0800 (PST) Organization: http://groups.google.com Message-ID: <7abff15c-4780-4ed5-ad89-ee75642e9553@u10g2000prn.googlegroups.com> References: <17d3aa79-edac-464c-8118-7321d2aaeccc@e6g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1205038221 28852 80.91.229.12 (9 Mar 2008 04:50:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Mar 2008 04:50:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 09 05:50:49 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JYDUn-0006eZ-0a for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Mar 2008 05:50:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JYDUF-0005vU-5u for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Mar 2008 23:50:15 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!u10g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 115 Original-NNTP-Posting-Host: 208.120.67.252 Original-X-Trace: posting.google.com 1205029329 13818 127.0.0.1 (9 Mar 2008 02:22:09 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 9 Mar 2008 02:22:09 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u10g2000prn.googlegroups.com; posting-host=208.120.67.252; posting-account=Gs-tWQoAAAC_ij35KMkW-wy85nqCYDX5 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20061201 Firefox/2.0.0.3 (Ubuntu-feisty),gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:156803 X-Mailman-Approved-At: Sat, 08 Mar 2008 23:48:38 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52177 Archived-At: oh, yes. here's my .emacs file :P (add-to-list 'load-path (expand-file-name "~/.elisp")) (autoload 'ruby-mode "ruby-mode" "Load ruby-mode") (add-hook 'ruby-mode-hook 'turn-on-font-lock) (load-file (expand-file-name "~/.elisp/site-lisp/cedet-common/cedet.elc")) (load-file (expand-file-name "~/.elisp/site-lisp/ecb/ecb-autoloads.elc")) (load-file (expand-file-name "~/.elisp/site-lisp/mmm-mode/mmm-mode.elc")) (load-file (expand-file-name "~/.elisp/site-lisp/semantic/semantic.elc")) (load-file (expand-file-name "~/.elisp/site-lisp/mmm-mode/mmm-compat.elc")) (require 'cedet) (require 'ecb-autoloads) (require 'snippet) (require 'rails) (require 'find-recursive) ;; Enabling various SEMANTIC minor modes. See semantic/INSTALL for more ideas. ;; Select one of the following (semantic-load-enable-code-helpers) ;; (semantic-load-enable-guady-code-helpers) ;; (semantic-load-enable-excessive-code-helpers) ;; Enable this if you develop in semantic, or develop grammars ;; (semantic-load-enable-semantic-debugging-helpers) ;; inf-ruby stuff (autoload 'run-ruby "inf-ruby" "Run an inferior Ruby process") (autoload 'inf-ruby-keys "inf-ruby" "Set local key defs for inf-ruby in ruby-mode") (add-hook 'ruby-mode-hook '(lambda () (inf-ruby-keys))) (setq auto-mode-alist (cons '("\\.rb$" . ruby-mode) auto-mode-alist)) (setq auto-mode-alist (cons '("\\.rhtml$" . html-mode) auto-mode- alist)) (modify-coding-system-alist 'file "\\.rb$" 'utf-8) (modify-coding-system-alist 'file "\\.rhtml$" 'utf-8) (defun try-complete-abbrev (old) (if (expand-abbrev) t nil)) (setq hippie-expand-try-functions-list '(try-complete-abbrev try-complete-file-name try-expand-dabbrev)) (add-hook 'ruby-mode-hook (lambda() (add-hook 'local-write-file-hooks '(lambda() (save-excursion (untabify (point-min) (point-max)) (delete-trailing-whitespace) ))) (set (make-local-variable 'indent-tabs-mode) 'nil) (set (make-local-variable 'tab-width) 2) (imenu-add-to-menubar "IMENU") (require 'ruby-electric) (ruby-electric-mode t) )) ;; ;; mmm mode stuff also from credmp.org ;; ;;(require 'mmm-mode) this redundant line's gotta be a mistake..? (require 'mmm-mode) (require 'mmm-auto) (setq mmm-global-mode 'maybe) (setq mmm-submode-decoration-level 2) (set-face-background 'mmm-output-submode-face "LightGrey") (set-face-background 'mmm-code-submode-face "white") (set-face-background 'mmm-comment-submode-face "lightgrey") (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)) ;; shortcut to reparse the buffer (global-set-key [f8] 'mmm-parse-buffer) ;; make #! scripts executable after saving them (add-hook 'after-save-hook 'executable-make-buffer-file-executable-if- script-p) (setq x-select-enable-clipboard t) (setq interprogram-paste-function 'x-cut-buffer-or-selection-value)