gpt4 book ai didi

emacs - smart-operator.el 不自动加载...什么给了?

转载 作者:行者123 更新时间:2023-12-04 06:42:50 25 4
gpt4 key购买 nike

我正在尝试在 emacs 中使用 smart-operator.el。我已将以下内容放入我的 init.el 文件中:

(add-to-list 'load-path "~/.emacs.d/dotemacs_git/smart-operator/")
(require 'smart-operator)
(smart-operator-mode 1)

这似乎不会自动打开智能运算符(operator)模式......我仍然需要做
M-x smart-operator-mode

让它工作。我究竟做错了什么?此设置 here在 python-mode-hook 中使用 smart-operator-mode;我不明白为什么让函数调用以 python 模式为条件会很重要,虽然......

谢谢,

麦克风

最佳答案

您提供的链接显示人们使用

(smart-operator-mode-on)

此外,他们在 Hook 中添加了该调用,如下所示:
(add-hook 'python-mode-hook
(lambda ()
(smart-operator-mode-on)))

这将使用 python-mode 为所有缓冲区打开它.您将需要它,因为 smart-operator-mode不是 global minor mode .

关于emacs - smart-operator.el 不自动加载...什么给了?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4038533/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com