Search code examples
phpemacsdot-emacscarbon-emacs

emacs nxhtml-mode[No match]


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!


Solution

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

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

    this page here explains difference Link