I'm new to emacs and i would like to install pony-mode for django. I've been struggling with the installation instructions but I have not found a way to make it work. Do i need to byte-compile all the .el files? How do I do that? Are there any dependencies that need to be installed? I've managed to get the following error: pony-mode.el:83:1:Error: Cannot open load file: files-x
. Can someone provide a full set of instructions?
I'm using emacs GNU Emacs 23.1.1 on ubuntu 10.04
I noticed that pony-mode is also available via package.el
I have package manager configured like so:
(require 'package)
(dolist (source '(("marmalade" . "http://marmalade-repo.org/packages/")
("elpa" . "http://tromey.com/elpa/")))
(add-to-list 'package-archives source t))
(package-initialize)
And then you should be able to run the package-install
command and type pony-mode
when prompted in the minibuffer.
It works just fine for me
git clone http://github.com/davidmiller/pony-mode ~/Development/pony-mode
M-x byte-compile-file (compile only pony-mode.el)
And then add to .emacs:
(add-to-list 'load-path "~/Development/pony-mode")
(require 'pony-mode)
Of course you would have to change the paths for yours... Be careful with the path in the load path function, no final / and no spaces
The error "Cannot open load file: files-x" is unrelated to byte-compilation.
There is a file included in GNU Emacs 'files-x.el' which is required by pony-mode in order to set dir-local variables for per-project settings.
This error most likely means that the variable `load-path' is set such that it cannot find files-x.el.
(/usr/local/share/emacs/23.1/lisp/files-x.el would be a good first place to look in your case. Ch v load-path will allow you to inspect this variable.)
The installation instructions provided by @Fernando should work if your installation is standard
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.