Code Monkey home page Code Monkey logo

Comments (9)

ejmr avatar ejmr commented on July 17, 2024

Thanks. Off the top of my head I am not sure what would cause that, but I'll try to figure it out over the next twenty-four hours.

from php-mode.

 avatar commented on July 17, 2024

excellent! my .emacs file only contains:
(add-to-list 'load-path "/home/efx/myemacs_libs/php-mode") (load "php-mode")
I also tried the different way to include the library as listed in this thread:
http://stackoverflow.com/questions/898063/making-php-mode-and-other-cc-mode-derived-modes-compatible-with-emacs-23

from php-mode.

ejmr avatar ejmr commented on July 17, 2024

I'm curious, does autoload also fail? I.e.

(autoload 'php-mode "php-mode" "Major mode for editing php code." t)
(add-to-list 'auto-mode-alist '("\\.php$" . php-mode))

from php-mode.

 avatar commented on July 17, 2024

On 08/10/2011 06:45 PM, ejmr wrote:

I'm curious, does autoload also fail? I.e.

(autoload 'php-mode "php-mode" "Major mode for editing php code." t)
(add-to-list 'auto-mode-alist '("\\.php$" . php-mode))

autoload does fail. the messages gives me this:
File mode specification error: (file-error "Cannot open load file"
"php-mode")

At this point those are the only 2 lines I have in .emacs

What is a standard way to specify a custom path to where the php-mode.el
is if I do not have it installed with the other standard libraries?

from php-mode.

ejmr avatar ejmr commented on July 17, 2024

What is a standard way to specify a custom path to where the php-mode.el is if I do not have it installed with the other standard libraries?

Most people use something like

(add-to-list 'load-path "/path/to/directory/with/php-mode")

and then use autoload or require.

from php-mode.

 avatar commented on July 17, 2024

thanks for the tip.

Also, I upgraded to GnuEmacs 23.2 and that solved the problem. PHP mode loads and works now with the (add-to-list...) syntax above.

So the issue is resolved for me. I wasn't attached to 23.1 over 23.2, just inherited that version from my distributions package manager.

from php-mode.

ejmr avatar ejmr commented on July 17, 2024

Glad to hear it's working now. I'm still honestly not sure what originally caused the problem to begin with; but thanks for bringing it up.

from php-mode.

 avatar commented on July 17, 2024

On 08/12/2011 05:42 PM, ejmr wrote:

Glad to hear it's working now. I'm still honestly not sure what originally caused the problem to begin with; but thanks for bringing it up.

yeah that bug was a puzzler; thanks again for your help and maintaining
the php-mode.

from php-mode.

remar avatar remar commented on July 17, 2024

I had the exact same issue as efx ("'c-lang-defconst' must be used in a file" with Emacs 23.1.1), but it was resolved when using autoload as ejmr suggests.

from php-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.