File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
; ; Author: Artem Malyshev <[email protected] >
6
6
; ; URL: https://github.com/proofit404/pyenv-mode
7
- ; ; Version: 0.0.3
7
+ ; ; Version: 0.1.0
8
+ ; ; Package-Requires: ((pythonic "0.1.0"))
8
9
9
10
; ; This program is free software; you can redistribute it and/or modify
10
11
; ; it under the terms of the GNU General Public License as published by
25
26
26
27
; ;; Code:
27
28
28
- (require 'python )
29
+ (require 'pythonic )
29
30
30
31
(defgroup pyenv-mode nil
31
32
" Pyenv virtualenv integration with python mode."
64
65
(defun pyenv-mode-set (version )
65
66
" Set python shell VERSION."
66
67
(interactive (list (pyenv-mode-read-version)))
67
- (setq python-shell-virtualenv-path (pyenv-mode-full-path version))
68
+ (pythonic-activate (pyenv-mode-full-path version))
68
69
(setenv " PYENV_VERSION" version)
69
70
(force-mode-line-update ))
70
71
71
72
;;;### autoload
72
73
(defun pyenv-mode-unset ()
73
74
" Unset python shell version."
74
75
(interactive )
75
- (setq python-shell-virtualenv-path nil )
76
+ (pythonic-deactivate )
76
77
(setenv " PYENV_VERSION" )
77
78
(force-mode-line-update ))
78
79
You can’t perform that action at this time.
0 commit comments