【问题标题】:emacs scratch not interactive modeemacs从头开始不是交互模式
【发布时间】:2015-05-28 19:57:38
【问题描述】:

我将很多直接从 github 获得的包更新到了​​ MELPA 包。尽管如此,我的 *scratch* 缓冲区还是发生了一些非常奇怪的事情。默认消息没有出现(缓冲区完全为空),也没有设置交互式 elisp 模式(假设我写了(+ 2 2),然后点击C-j,它告诉我函数无效)。我不知道为什么。我什至不知道如何调试它来检查错误在哪里。有什么想法吗?

【问题讨论】:

  • *Messages*有什么好玩的吗?
  • 没什么有趣的,我收到的唯一奇怪的消息是Error while loading 50dictionaries-common[yas] Discovered there was already *scratch* in fundamental-mode,但我认为这与它无关。
  • 50dictionaries-common 是什么?
  • 你不能再切换到fundamental-mode吗?
  • 和往常一样,递归地分割你的初始化文件,找出导致行为变化的原因(假设你没有看到 emacs -Q 的行为)。您可以使用comment-region 注释掉文本区域(使用C-u 注释掉它)。

标签: emacs elisp interactive


【解决方案1】:

最后这个问题是由flycheck-add-next-checker 产生的,由于某种原因,使用 MELPA 存储库会产生这个错误。我刚刚注释了我的配置文件的以下部分。

 (eval-after-load 'flycheck
   '(progn
       ;; Add Google C++ Style checker.
       ;; In default, syntax checked by Clang and Cppcheck.
       (flycheck-add-next-checker 'c/c++-clang
           '(warnings-only . c/c++-googlelint))))

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-07-28
    • 1970-01-01
    • 2014-12-31
    • 2010-10-27
    • 2021-11-14
    • 1970-01-01
    相关资源
    最近更新 更多