emacs nxhtml-mode[No match]

1.1k views Asked by At

I am having some problems with nxhtml installation, I want my .php files to look better and I don't wanna go back to netbeans...

I have downloaded nxhtml and I created a folder called 'emacs-packages' where my .emacs is I added this line in my .emacs file :

(load "emacs-packages/nxhtml/autostart22.el") 

whenever I try M-x nxhtml-mode I get [No Match] as an answer...

I also tried

(load "emacs-packages/nxhtml/autostart.el")

and I get an error on startup but since my version is 22 I think the first one is more appropriate

are there any other packages I should install forst in order to use it? what am I doing wrong?

I am using Carbon emacs 22.3.1 on MacOs

thanks!

2

There are 2 answers

0
rabidmachine9 On BEST ANSWER

Problem solved I just changed the load to load-file:

(load-file "emacs-packages/nxhtml/autostart.el")

this page here explains difference Link

3
Oleg Pavliv On

The only thing you need is

(load "emacs-packages/nxhtml/autostart.el")

Try to specify the full path. Put the cursor on "emacs-packages/nxhtml/autostart.el" and call M-x ffap to see if it can do find-file-at-point.