Skip to content

Instantly share code, notes, and snippets.

@constrict0r
Last active November 4, 2018 02:22
Show Gist options
  • Save constrict0r/e5cb059fad014d1928e829e27202df8f to your computer and use it in GitHub Desktop.
Save constrict0r/e5cb059fad014d1928e829e27202df8f to your computer and use it in GitHub Desktop.
Directory variables to enable pdb on emacs.
;; Directory Local Variables
;; Activate 'amanita' virtual enviroment from emacs.
((nil . ((pyvenv-workon . "amanita"))))
;; Must run on shell: cp /usr/bin/pdb3 ~/.virtualenvs/amanita/bin/pdb
;; And change #! /usr/bin/python3 for #! /home/constrict0r/.virtualenvs/amanita/bin/python.
;; First time on emacs must call a shell an install the package to work:
;; M-x RET shell RET python setup.py install RET.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment