Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong format for entry in auto-mode-alist #14

Open
circius opened this issue Jan 17, 2019 · 1 comment
Open

Wrong format for entry in auto-mode-alist #14

circius opened this issue Jan 17, 2019 · 1 comment

Comments

@circius
Copy link

circius commented Jan 17, 2019

Hello. Thanks for this useful software.

I wasn't able to get it running automatically when I opened project-files. I was getting a "File mode specification error". It worked fine when enabled automatically.

I think this was due to a faulty entry in auto-mode-alist. The relevant code can be found at the end of nand2tetris.el:

(add-to-list 'auto-mode-alist
             `(,(concat (expand-file-name nand2tetris-core-base-dir) "\.*\\.hdl")
               . 'nand2tetris-mode))

This was resulting in an entry to auto-mode-alist which was dissimilar to the other entries; deleting the quote before the mode in the above expression produced a properly-formatted entry in auto-mode-alist and resolved the problem for me. The revised code is below:

(add-to-list 'auto-mode-alist
             `(,(concat (expand-file-name nand2tetris-core-base-dir) "\.*\\.hdl")
               . nand2tetris-mode))
@circius
Copy link
Author

circius commented Feb 18, 2019

In case someone comes across this in the future, this pull request includes a fix for this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant