目前更改了Python的设置,发现启动时间也大大减少了,没有Desktop需要恢复的时候,大概也是10s左右。启动效果如下图:
关于Anaconda 激活的问题,目前没找到很好的方法,暂时放弃了,
改用官网的Python 3.8 + virtualenv + virtualenvwrapper的方案。shell的补全和交互环境交给ipython了。
在默认init-python.el配置中增加以下配置:
(setq python-shell-interpreter "ipython")
(setq python-shell-interpreter-args "-i")
(setq python-shell-prompt-regexp "In \\[[0-9]+\\]: ")
(setq python-shell-prompt-output-regexp "Out\\[[0-9]+\\]: ")
(setq python-shell-completion-setup-code "from IPython.core.completerlib import module_completion")
(setq python-shell-completion-module-string-code "';'.join(module_completion('''%s'''))\n")
(setq python-shell-completion-string-code "';'.join(get_ipython().Completer.all_completions('''%s'''))\n")
