I don't know.  Why don't you send me your .emacs file and I'll take a
look at it.  From what you've told me and shown me you should have it
working.

Bryan

On Mon, 2003-03-24 at 22:44, Erin! wrote:
> php-mode.el has the most permissions of everything...  when i was
> working on it earlier today, i thought it might have been a permissions
> problem, so i gave it ultimate permissions... 
> 
> -rw-r--r--    1 root     root        11168 Aug  5  2002 a2ps.el
> -rw-r--r--    1 root     root         5011 Aug  5  2002 a2ps.elc
> -rw-r--r--    1 root     root         3937 Aug  5  2002 a2ps-print.el
> -rw-r--r--    1 root     root         1996 Aug  5  2002 a2ps-print.elc
> -rwxrwxrwx    1 root     root        41533 Mar 24 13:58 php-mode.el
> -rw-r--r--    1 root     root        11940 Mar 23 20:06 php-mode.elc
> drwxr-xr-x    2 root     root         4096 Mar 24 14:28 site-start.d
> -rw-r--r--    1 root     root        13794 Jun 23  2002 t-mouse.el
> -rw-r--r--    1 root     root         7762 Jun 23  2002 t-mouse.elc
> 
> is this helpful???  oh...  the php-mode.elc is something i got from a
> friend's computer, hoping it might fix the problem (my friend has
> syntax-highlighting and i tried to figure out what files caused that..)
> umm...   let me know what other info you need... :)
> ~Erin
> 
> 
> 
> --- Bryan Murdock <[EMAIL PROTECTED]> wrote:
> > On Mon, 2003-03-24 at 18:29, Erin! wrote:
> > > i went to a couple different sources, and the following code
> > snippets
> > > were each recommended by a different website dealing with php
> > syntax
> > > highlighting...  i tried them in various combinations (each alone,
> > all
> > > toghether, two at a time...) but none of them seem to fix the
> > > problem...  so...  it doesn't seem to be working at all...  i'm
> > kind of
> > > confused because i know somebody who does have the syntax
> > highlighting,
> > > but he doens't know how he got it, cuz it came when he installed
> > > emacs.... (and i got my .emacs file from him)
> > > thanx a ton!
> > > ~Erin
> > > 
> > > (require 'php-mode)
> > 
> > The above is what tells emacs to find the php-mode.el file that you
> > said
> > you put in /usr/share/emacs/site-lisp.  That site-lisp directory
> > should
> > be in your load path, but if emacs is saying it can't find
> > php-mode.el
> > than maybe the .el file is not really there, or the permissions are
> > wrong, or your load-path is messed up.  Can you do an ll
> > /usr/share/emacs/site-lisp and see if php-mode.el is in there, and
> > what
> > it's permissions are?  You can just copy and paste that into an email
> > and we can go from there.
> > 
> > > (set auto-mode-alist
> > >      (append '(("\\.php$" . php-mode)
> > >          ("\\.php3" . php-mode))
> > >        auto-mode-alist))
> > 
> > This tells emacs to automatically go into php mode when you open a
> > file
> > with a .php or .php3 extension.
> > > 
> > > 
> > > (autoload 'php-mode "php-mode" "PHP editing mode" t)
> > This looks like it does something similare to the (require
> > 'php-mode). 
> > Probably should only have one or the other.  I have the require line.
> > 
> > > (add-to-list 'auto-mode-alist '("\\.php\\'" . php-mode))
> > This does the same as the above (set auto-mode-alist... stuff, only
> > it's
> > only setting up php-mode for .php files, not .php3.  Again, only use
> > one
> > or the other.
> > 
> > > (cond (window-system
> > >        (require 'font-lock)
> > >        (setq font-lock-support-mode 'lazy-lock-mode)
> > >        (setq font-lock-maximum-decoration t)
> > >        (global-font-lock-mode t)
> > >        ))
> > 
> > This seems to make sure syntax highlighting is turned on for
> > everything.  
> > 
> > Bryan
> > > 
> > > 
> > > --- Bryan Murdock <[EMAIL PROTECTED]> wrote:
> > > > On Mon, 2003-03-24 at 14:48, Erin! wrote:
> > > > > 
> > > > > how do i get php syntax highlighting in emacs?  i've downloaded
> > the
> > > > >php-mode.el file from the web, and i made the recommended
> > changes to
> > > > my
> > > > >.emacs file, but it's still not working...  it says that it
> > can't
> > > > find
> > > > >the php-mode file.  what folder am i supposed to have it in? 
> > > > >currently, it's in /usr/share/emacs/site-lisp/
> > > > 
> > > > That directory should work...what changes did it have you make in
> > > > your
> > > > .emacs file?
> > > > 
> > > > As a side note, PHP highlighting can be a little tricky if the
> > php is
> > > > embedded in an html file.  If it is, then emacs is probably just
> > > > going
> > > > to go into an html mode and get confused by the php, and the
> > php-mode
> > > > I
> > > > found got all confused by the html if I turned it on.  You can
> > get
> > > > html-helper-mode (http://www.gest.unipd.it/~saint/hth.html) which
> > > > deals
> > > > with php embedded in html pretty well to fix this.
> > > > 
> > > > Bryan
> > > > 
> > > > 
> > > > 
> > > > _______________________________________________
> > > > newbies mailing list
> > > > [EMAIL PROTECTED]
> > > > http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
> > > 
> > > 
> > > =====
> > > �The pledge of allegiance to the flag is a pledge to the ideals of
> > our forefathers, the men who fought and died in the building of this
> > great nation.  It is a pledge to fulfill our duties and obligations
> > as citizens of the United States, and to uphold the principles of our
> > constitution.  And last but not least, it is a pledge to maintain the
> > four great freedoms treasured by all Americans: freedom of speech,
> > freedom of religion, freedom from want, and freedom from fear.�
> > > ~Lee Greenwood
> > > 
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
> > desktop!
> > > http://platinum.yahoo.com
> > > 
> > > _______________________________________________
> > > newbies mailing list
> > > [EMAIL PROTECTED]
> > > http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
> > > 
> > 
> > 
> > 
> > _______________________________________________
> > newbies mailing list
> > [EMAIL PROTECTED]
> > http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
> 
> 
> =====
> �The pledge of allegiance to the flag is a pledge to the ideals of our forefathers, 
> the men who fought and died in the building of this great nation.  It is a pledge to 
> fulfill our duties and obligations as citizens of the United States, and to uphold 
> the principles of our constitution.  And last but not least, it is a pledge to 
> maintain the four great freedoms treasured by all Americans: freedom of speech, 
> freedom of religion, freedom from want, and freedom from fear.�
> ~Lee Greenwood
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
> 
> _______________________________________________
> newbies mailing list
> [EMAIL PROTECTED]
> http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies
> 



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

Reply via email to