我刚刚发现了use-package,我想和python-mode.el一起使用它。我在尝试这个:
(use-package python-mode
:mode ("\\.py\\'" . python-mode)
:interpreter ("python" . python-mode))但python.el仍在为python-mode服务。use-package示例具体描述了使用python.el for python-mode,但我想要的正好相反。我能用use-package来完成吗?
(如果这很重要的话,我在OS上使用GNU Emacs 24.5.1。)
发布于 2016-06-29 02:08:20
不要使用关键字:mode和:interpreter。对我来说,就像这样:
(use-package python-mode
:init
...
:config
...)发布于 2021-12-25 22:05:05
我找到的唯一可行的解决方案是:https://superuser.com/questions/108233/how-can-i-prevent-the-python-el-that-ships-with-emacs-23-from-ever-loading/999608#999608
在您的.emacs中,首先强制加载坏包,然后用正确的包重写它:
(require 'python)
(require 'python-mode)https://stackoverflow.com/questions/33530054
复制相似问题