开发者

How to clear SML Buffer in Emacs when using SML mode.

开发者 https://www.devze.com 2023-01-26 13:41 出处:网络
I am using Emacs with SML mode. Sometimes I need to clean the SML buffer. How can I do t开发者_JS百科hat.Standard ML of New Jersey is a functional programming language that is a variant of ML. Usually

I am using Emacs with SML mode. Sometimes I need to clean the SML buffer. How can I do t开发者_JS百科hat.


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.


 (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)))
0

精彩评论

暂无评论...
验证码 换一张
取 消