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

head of packaged python-mode needs python-mode installation dir set #67

Open
ViktorHaag opened this issue Jan 30, 2015 · 1 comment
Open

Comments

@ViktorHaag
Copy link

Recent versions of packaged (https://github.com/emacsmirror/python-mode) python-mode seem to require a py-install-directory variable set and provide default-directory as a fallback if the var is not set. We should likely add in something like this before the (require 'python-mode) in starter-kit-python.org to properly set this variable to the installed package version:

(setq py-install-directory
  (car (directory-files package-user-dir t "python-mode-.*")) )

This is probably a relatively fragile gist: it pulls the first item out of the (not reliably sorted) list of file/dirs that match the pattern out of the package directory. It might be useful to have a "get directory for loaded package" function or something to properly get the place that a loaded package ends up at here.

I'm using this setq in my starter-kit-python.el, and it seems to work just fine.

@doolio
Copy link

doolio commented Aug 19, 2015

When you set the py-install-directory like this did you get a warning to update your abbrev-file-name? I did under emacs 24.5.

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

2 participants