11

当我关闭关联的缓冲区时,有没有办法告诉 emacs 总是杀死 flymake 进程?当与缓冲区关联的唯一进程是flymake进程时,我不想得到确认?

4

2 回答 2

12

您也可以通过以下process-query-on-exit-flag建议关闭:

(defadvice flymake-start-syntax-check-process (after
                                               cheeso-advice-flymake-start-syntax-check-1
                                               (cmd args dir)
                                               activate compile)
  ;; set flag to allow exit without query on any
  ;;active flymake processes
  (set-process-query-on-exit-flag ad-return-value nil))

这与上面的补丁效果相同,但不需要修改 flymake.el 。

于 2011-09-15T14:15:38.793 回答
5

这是一个补丁。要点是修改调用flymake的函数,用于为flymake进程set-process-query-on-exit-flag设置process-query-on-exit-flag变量。nil另请参阅C-h f set-process-query-on-exit-flag

于 2011-09-04T17:49:42.633 回答