Emacs mode/function that wraps operators with spaces

ε祈祈猫儿з 提交于 2019-12-03 16:03:52
sanityinc

You're probably thinking of smart-operator.el.

How about smartchr.el? This is probably not what you are trying to recall, but I'm sure it works nicely for that purpose.

For example:

(require 'smartchr)
(global-set-key (kbd "=") (smartchr '(" = " " == " "=")))

With this configuration, when you type = several times,  =  is inserted and it rotates to  ==  to = then back to  = .

Here is an introduction by the author (written in Japanese, but with a demo video and example of configuration): http://tech.kayac.com/archive/emacs-tips-smartchr.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!