开发者

smart-operator.el not autoloading ... what gives?

开发者 https://www.devze.com 2023-01-22 12:23 出处:网络
I\'m trying to use smart-operator.el in emacs. I\'ve put the following into my init.el file: (add-to-list \'load-path \"~/.emacs.d/dotemacs_git/smart-operator/\")

I'm trying to use smart-operator.el in emacs. I've put the following into my init.el file:

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

That doesn't seem to turn on smart-operator-mode automatically ... I still have to do

M-x smart-operato开发者_C百科r-mode

to get it working. What am I doing wrong? This setup here uses smart-operator-mode within a python-mode-hook; I don't see why making the function call conditional on python-mode would matter, though...

Thanks,

Mike


The link you provide shows folks using

(smart-operator-mode-on)

Also, they're adding that call in a hook, like so:

(add-hook 'python-mode-hook
          (lambda ()
              (smart-operator-mode-on)))

Which will turn it on for all buffers using python-mode. You'll need that since it appears that smart-operator-mode is not a global minor mode.

0

精彩评论

暂无评论...
验证码 换一张
取 消