Emacs smart-operator.el未自动加载。。。有什么好处?
我正在尝试在emacs中使用smart-operator.el。我已将以下内容放入init.el文件中:Emacs smart-operator.el未自动加载。。。有什么好处?,emacs,elisp,Emacs,Elisp,我正在尝试在emacs中使用smart-operator.el。我已将以下内容放入init.el文件中: (add-to-list 'load-path "~/.emacs.d/dotemacs_git/smart-operator/") (require 'smart-operator) (smart-operator-mode 1) 这似乎不会自动打开智能操作员模式。。。我还得做 M-x smart-operator-mode 让它工作。我做错了什么?此设置在python模式挂钩中使用智
(add-to-list 'load-path "~/.emacs.d/dotemacs_git/smart-operator/")
(require 'smart-operator)
(smart-operator-mode 1)
这似乎不会自动打开智能操作员模式。。。我还得做
M-x smart-operator-mode
让它工作。我做错了什么?此设置在python模式挂钩中使用智能操作员模式;我不明白为什么在python模式下使函数调用有条件会很重要,尽管
谢谢
Mike您提供的链接显示了使用
(smart-operator-mode-on)
此外,他们还在钩子中添加了调用,如下所示:
(add-hook 'python-mode-hook
(lambda ()
(smart-operator-mode-on)))
这将使用
python模式
为所有缓冲区启用它。您需要这样做,因为智能操作员模式
似乎不是一个解决方案。。不知道全局小模式。。。谢谢你指出这一点。