【问题标题】:emacs: turning electric-indent-mode on/off easilyemacs:轻松打开/关闭电子缩进模式
【发布时间】:2016-02-03 20:20:37
【问题描述】:

我是一个 elisp 新手。当我按“C-c e”时如何告诉emacs切换电子缩进模式?

我试过了

 (global-set-key (kbd "C-c e") 'toggle-electric-indent-mode)

但这似乎不适合我。

【问题讨论】:

    标签: emacs initialization elisp indentation


    【解决方案1】:

    模式只是一个你可以调用的函数。试试:

    (global-set-key (kbd "C-c e") 'electric-indent-mode)
    

    【讨论】:

      猜你喜欢
      • 2012-01-28
      • 2012-12-11
      • 2014-02-06
      • 2011-06-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-26
      • 1970-01-01
      相关资源
      最近更新 更多