Comments (9)
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.
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.
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.
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.
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.
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.
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.
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.
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)
- Text inside Heredoc breaks indentation.
- Syntax highlighting for SQL strings HOT 2
- Please tag release (prerelease or beta is ok) for Emacs 28 compatibility HOT 1
- Error in ternary operator indentation HOT 1
- Unexpected syntax highlights after "new" in string HOT 1
- Automatic, overly-clever brace-matching is annoying and how to turn it off is non-obvious HOT 2
- Function faces HOT 1
- Commented out array elements break indentation HOT 2
- Drop Emacs 25 Support
- WordPress coding style removing spaces around function args HOT 1
- The last argument of the method is not highlighted
- PEAR method chaining wrong indentation HOT 5
- File mode specification error HOT 5
- Indentation issue with closure/anonymous functions
- Lineup Cascaded Calls doesn't work properly
- emacs master results in error HOT 2
- Drop Emacs 26 Support
- Newline Indentation aligning with equal sign HOT 3
- while keyword says 'At top level' HOT 2
- Remove `$` from face names for interoperability with treesit
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-mode.