How to clear the SML buffer in Emacs when using SML mode.

I am using Emacs with SML mode. Sometimes I need to clear the SML buffer. How can i do this.

+3
source share
2 answers

The New Jersey ML Standard is a functional programming language that is a variant of ML. It is commonly used in EMACS with a plugin. Since I usually just killed the buffer and started a new one, there was no need to clear the screen. However, this may be useful: http://www.standardml.org/Basis/manpages.html .

+4
source
 (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
source

Source: https://habr.com/ru/post/1775892/


All Articles