From: snack <snackdetector@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: problems configuring xemacs for rails on ubuntu
Date: Sat, 8 Mar 2008 18:22:09 -0800 (PST) [thread overview]
Message-ID: <7abff15c-4780-4ed5-ad89-ee75642e9553@u10g2000prn.googlegroups.com> (raw)
In-Reply-To: 17d3aa79-edac-464c-8118-7321d2aaeccc@e6g2000prf.googlegroups.com
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)
next prev parent reply other threads:[~2008-03-09 2:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-09 2:17 problems configuring xemacs for rails on ubuntu snack
2008-03-09 2:22 ` snack [this message]
2008-04-07 2:00 ` Cezar Halmagean
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7abff15c-4780-4ed5-ad89-ee75642e9553@u10g2000prn.googlegroups.com \
--to=snackdetector@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).