使用 SML 模式时如何清除 Emacs 中的 SML 缓冲区。

发布于 2024-10-03 14:24:54 字数 52 浏览 0 评论 0原文

我正在使用带有 SML 模式的 Emacs。有时我需要清理 SML 缓冲区。我该怎么办呢。

I am using Emacs with SML mode. Sometimes I need to clean the SML buffer. How can I do that.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

_畞蕅 2024-10-10 14:24:54

新泽西州标准 ML 是一种函数式编程语言,是 ML 的变体。通常它通过插件在 EMACS 中使用。由于我通常只是终止缓冲区并启动一个新缓冲区,因此不需要清屏。然而这可能有用:
http://www.standardml.org/Basis/manpages.html

Standard ML of New Jersey is a functional programming language that is a variant of ML. Usually it's used in EMACS with a plugin. Since I usually just kill the buffer and start a new one there wasn't the need for a clearscreen. However this might be useful:
http://www.standardml.org/Basis/manpages.html.

心房的律动 2024-10-10 14:24:54
 (let ((sml-process (get-process "sml")))
    (when sml-process
      (quit-process sml-process)))
  (sleep-for 0.25)
  (let ((sml-buffer (get-buffer "*sml*")))
    (when sml-buffer
      (kill-buffer sml-buffer)))
 (let ((sml-process (get-process "sml")))
    (when sml-process
      (quit-process sml-process)))
  (sleep-for 0.25)
  (let ((sml-buffer (get-buffer "*sml*")))
    (when sml-buffer
      (kill-buffer sml-buffer)))
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文