On Tue, 2003-03-25 at 16:10, Erin! wrote:
> alright.   here it is...  i've heard that it's a rather standard one
> that has floated around byu, but i've been making modifications,
> teaching myself about it (so i've crashed emacs a few times)... hope it
> helps... :)

OK, I made a backup of my .emacs, but yours in my home directory,
modified it a little, and put the php-mode.el file that I have laying
around in /usr/share/emacs/site-lisp and started emacs.  It opened with
no complaints, and when I opened a file with a .php extension, it went
into php-mode and gave me the pretty colors.

The modification I made was to uncomment the lines:

(require 'php-mode)

and:

(add-to-list 'auto-mode-alist '("\\.php\\'" . php-mode))

I would try doing that (don't use any of those other lines you added
with php-mode stuff.  If that doesn't work then maybe for some reason
with your distribution you can't just drop a .el file in that global dir
and expect emacs to find it, or your php-mode.el file is messed up or
something.  I don't know.

I put all my downloaded stuff into a folder in my home directory called
elisp.  Then near the top of my .emacs file I have this stuff which
tells emacs to look there for files:

;;;;; set local load path for downloaded modes ;;;;;;
(defun prepend-path ( my-path )
  (setq load-path (cons (expand-file-name my-path) load-path)))
;; Look first in the directory /home/bryan/elisp for elisp files
(prepend-path "/home/bryan/elisp")

I would just try doing something like this if you still can't get it to
work.  Sorry I'm not more of an emacs guru.  I've just played around a
bit and figured a few things out.

Bryan




_______________________________________________
newbies mailing list
[EMAIL PROTECTED]
http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies

Reply via email to