all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* problems configuring xemacs for rails on ubuntu
@ 2008-03-09  2:17 snack
  2008-03-09  2:22 ` snack
  0 siblings, 1 reply; 3+ messages in thread
From: snack @ 2008-03-09  2:17 UTC (permalink / raw)
  To: help-gnu-emacs

i set out to install emacs for ruby/rails. after poking around a bit,
i
came up with the following packages of emacs add-ons (which either
seemed
helpful in and of themselves, or were depended on by other helpful
bits.):

  ecb (code browser)
  ruby-elisp (ruby-mode etc)
  emacs-rails (rails minor mode ect)
  mmm (multiple major mode)
  snippets
  find-recursive

this is all pretty much new territory for me, including the linux box
on
which i'm experimenting. on the other hand, i don't mind getting my
hands
dirty (that's sort of the point, at least as far as i am able). the
above
list was gleaned from five or six different websites/blogs, and each
has its
own prescription for appropriate additions to my .emacs -- so i'm
having to
sort of collage all these authors imput together. i think i've
integrated
most of the suggestions that came with these packages, and i'm
smoothed out
various issues such as:
  * moved all lisp into ~/.elisp/ (probably not necessary, but it
    seemed it couldn't hurt...)
  * enumerated subdirs in the load-path with ~/.elisp/subdirs.el
  * expanded pathnames in my home directory to make them xemacs
compliant
    ie,     (add-to-list 'load-path (expand-file-name "~/.elisp"))

in other words i've caught everything that leaped out at me. but i
still get
emacs telling me that it can't find things. currently it give this
message:


	File error: Cannot open load file, mmm-compat
	run-hooks: Cannot open load file: semantic-el


if i run emacs with the --debug-init flag, i get this:


	Debugger entered--Lisp error: (file-error "Cannot open load file"
"mmm-compat")
	  require(mmm-compat)
	  byte-code("ÀÁ!!!!!!!!!‡" [require cl font-lock mmm-compat mmm-utils
mmm-vars mmm-auto mmm-region mmm-class mmm-univ] 2)
	  load("/home/matokie/.elisp/site-lisp/mmm-mode/mmm-mode.elc" nil nil
t)
	  load-file("/home/matokie/.elisp/site-lisp/mmm-mode/mmm-mode.elc")
	  eval-buffer(#<buffer  *load*> nil "/home/matokie/.emacs" nil t)  ;
Reading at buffer position 703
	  load-with-code-conversion("/home/matokie/.emacs" "/home/
matokie/.emacs" t t)
	  load("~/.emacs" t t)
	  #[nil "\bพ


up to this point, i could always add an explicit load-file for
whatever was
missing, and it emacs would then tell me the next missing thing. ie,
	(load-file (expand-file-name
	  "~/.elisp/site-lisp/mmm-mode/mmm-compat.elc"))
Unfortunately, it seems i've reached a dead end, as this tactic won't
work
for mmm-compat, and i don't really understand the run-hooks error.





i hope i don't sound like too much of a neophyte for anyone to even
bother
with -- i'd really appreciate any input or tactics that anyone could
suggest.

thanks,


josh


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problems configuring xemacs for rails on ubuntu
  2008-03-09  2:17 problems configuring xemacs for rails on ubuntu snack
@ 2008-03-09  2:22 ` snack
  2008-04-07  2:00   ` Cezar Halmagean
  0 siblings, 1 reply; 3+ messages in thread
From: snack @ 2008-03-09  2:22 UTC (permalink / raw)
  To: help-gnu-emacs

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)





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problems configuring xemacs for rails on ubuntu
  2008-03-09  2:22 ` snack
@ 2008-04-07  2:00   ` Cezar Halmagean
  0 siblings, 0 replies; 3+ messages in thread
From: Cezar Halmagean @ 2008-04-07  2:00 UTC (permalink / raw)
  To: help-gnu-emacs

snack <snackdetector@gmail.com> writes:

> oh, yes. here's my .emacs file :P
>
>

Hi Snack,

  I am not sure if you are familiar with emacs-rails. I am using it with
  GNU Emacs and it's very cool for working with Rails.

  http://rubyforge.org/projects/emacs-rails/

Regards,
Cezar





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-07  2:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-09  2:17 problems configuring xemacs for rails on ubuntu snack
2008-03-09  2:22 ` snack
2008-04-07  2:00   ` Cezar Halmagean

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.