使用spacemacs打开一个python文件时会报这样的错.
Importmagic and/or epc not found. importmagic.el will not be working.
emacs: 25.3.1 spacemacs: 0.300.0 platform: osx
我的.spacemacs.d/init.el如下:
(defun dotspacemacs/user-init ()
(setq configuration-layer-elpa-archives
'(("melpa-cn" . "http://elpa.emacs-china.org/melpa/")
("org-cn" . "http://elpa.emacs-china.org/org/")
("gnu-cn" . "http://elpa.emacs-china.org/gnu/")))
(setq tramp-ssh-controlmaster-options
"-o ControlMaster=auto -o ControlPath='tramp.%%C' -o ControlPersist=no")
(setenv "WORKON_HOME" "~/miniconda3/envs")
)
(defun dotspacemacs/user-config ()
(setq create-lockfiles nil)
(add-hook 'python-mode-hook (lambda ()
(flycheck-mode 1)
(semantic-mode 1)
(setq flycheck-checker 'python-pylint
flycheck-checker-error-threshold 900
flycheck-pylintrc "~/.pylintrc")))
(require 'pyvenv)
(pyvenv-activate "~/miniconda3/envs/python27")
)
查到一个类似的issue,在https://github.com/syl20bnr/spacemacs/issues/10145,试了但是并不能解决问题。 请问有哪位道友知道怎么解决吗?