* bug#19957: automaticaly rename new buffer in term-mode
@ 2015-02-26 20:21 Timothée Flutre
2015-02-28 20:32 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Timothée Flutre @ 2015-02-26 20:21 UTC (permalink / raw
To: 19957
Hello,
I recently asked this question: http://unix.stackexchange.com/q/182211/34919
and someone kindly answered: http://unix.stackexchange.com/a/186565/34919
I slightly modified his answer into the following function:
(defun term-new ()
(interactive)
(command-execute 'term)
(setq-default truncate-lines nil)
(if (not (boundp 'term-number))
(defvar term-number 1 "term index in the current emacs session") )
(rename-buffer (concat "*terminal*<" (int-to-string term-number) ">"))
(setq term-number (+ 1 term-number))
)
I think it can be useful to other users (at least I know several of
them). By any chance, could this be added to a future release of
Emacs?
If yes, as it is a very small contributions, do you still want me to
retrieve the full distribution from
http://savannah.gnu.org/projects/emacs/ and submit an official patch?
Timothée Flutre
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#19957: automaticaly rename new buffer in term-mode
2015-02-26 20:21 bug#19957: automaticaly rename new buffer in term-mode Timothée Flutre
@ 2015-02-28 20:32 ` Glenn Morris
0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2015-02-28 20:32 UTC (permalink / raw
To: timflutre; +Cc: 19957
Thanks, but I think this is too specific/too much of a personal
preference thing for Emacs proper.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-28 20:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-26 20:21 bug#19957: automaticaly rename new buffer in term-mode Timothée Flutre
2015-02-28 20:32 ` Glenn Morris
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.