michaelklishin / cucumber.el

Emacs mode for editing Cucumber plain text stories
None!
253 stars 90 forks source link

Problem installing on Emacs 23 #4

Closed inkel closed 14 years ago

inkel commented 15 years ago

Hi, first of all I'm pretty aware I might be doing something wrong.

I'm having an error when loading this mode in Emacs 23. This are the steps I've followed:

cd ~/dev/tools/
git clone git://github.com/michaelklishin/cucumber.el.git
cd ~/.emacs.d/
ln -s ~/dev/tools/cucumber.el

Then I've the following to ~/.emacs.d/init.el

(add-to-list 'load-path "~/.emacs.d/cucumber.el/feature-mode")
(require 'feature-mode)
(add-to-list 'auto-mode-alist '("\.feature$" . feature-mode))

When I run Emacs I'm getting an error:

File error: Cannot open load file, feature-mode

Running with the --debug-init flag does not display anything more useful than this.

Any help would be appreciated. Thanks for your time.

inkel commented 15 years ago

As I've said, it was my mistake. I've replaced the load path, as I was indicating the file, not the directory:

(add-to-list 'load-path "~/.emacs.d/cucumber.el/feature-mode")

Now it works perfect. Thanks ;)

The only thing I would add is setting the correct indentation variables.