File tree 2 files changed +20
-2
lines changed
2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ server/
38
38
/* .zip
39
39
* .db
40
40
python- * -docs-html
41
- anaconda-mode /
42
41
43
42
# Private directory
44
43
private /*
Original file line number Diff line number Diff line change 37
37
(defun python/init-anaconda-mode ()
38
38
(use-package anaconda-mode
39
39
:defer t
40
- :init (add-hook 'python-mode-hook 'anaconda-mode )
40
+ :init
41
+ (progn
42
+ (defun spacemacs//set-anaconda-mode-directory ()
43
+ ; ; hack to redefine the variable `anaconda-mode-server-directory'
44
+ ; ; we need to do this to retrieve the server version and
45
+ ; ; then redefine the variable
46
+ (unless (string-match-p spacemacs-cache-directory
47
+ anaconda-mode-server-directory)
48
+ (makunbound 'anaconda-mode-ensure-directory-command )
49
+ (makunbound 'anaconda-mode-check-installation-command )
50
+ (makunbound 'anaconda-mode-install-server-command )
51
+ (setq features (delq 'anaconda-mode features))
52
+ (setq anaconda-mode-server-directory
53
+ (concat spacemacs-cache-directory
54
+ " anaconda-mode/"
55
+ anaconda-mode-server-version))
56
+ (require 'anaconda-mode )))
57
+ (spacemacs/add-to-hook 'python-mode-hook
58
+ '(spacemacs//set-anaconda-mode-directory
59
+ anaconda-mode)))
41
60
:config
42
61
(progn
43
62
(evil-leader/set-key-for-mode 'python-mode
You can’t perform that action at this time.
0 commit comments