In Emacs, let's create a buffer in term-mode with M-x term
. The resulting buffer is named *terminal*
. If one wants to create another buffer also in term-mode, one usually does M-x term
again. However, this simply gets back to the first buffer. Therefore, one has to (1) rename the first buffer with M-x rename-uniquely
, this buffer now being named *terminal*<2>
, and (2) create the second buffer with M-x term
, that buffer being named *terminal*
.
Would there be a way instead to create another buffer in term-mode without renaming the first ones, so that the new buffer is automatically named *terminal<i+1>*
where i
is the number of already-existing buffers in term-mode?
ps: I started reading the introduction to programming in Emacs Lisp, in order to write in my .emacs my own function overloading M-x term
, but I feel like any help will be much needed!
Aucun commentaire:
Enregistrer un commentaire