Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

More than one emacs terminal

Tags:

terminal

emacs

I am getting more and more used to doing everything from inside emacs, but it seems that eshell, shell and term will only run one instance each. Is there a way to run multiple terminals (preferably term) inside emacs?

like image 506
Mad Wombat Avatar asked May 07 '10 03:05

Mad Wombat


People also ask

How do I open multiple Emacs?

Much better to use the multiple buffer feature of emacs. If you are editing the first file and want to start editing the second file, simply use the hot key C-x C-f or the menu selection File->Open File to start the second file. The second file is loaded into its own buffer.

Can you open more than one Linux terminal?

Press and hold the CTRL+SHIFT+N keys simultaneously. This keyboard shortcut will create a new terminal window.

How do I open a new shell in Emacs?

You can start an interactive shell in Emacs by typing M-x shell . By default, this will start the standard Windows shell cmd.exe . Emacs uses the SHELL environment variable to determine which program to use as the shell.

Does Emacs work in terminal?

If you are working with a command line interface with no option to start GUI application, start Emacs directly in the terminal with emacs .


2 Answers

Use the command M-x rename-buffer to give the current shell buffer a new name, then you can start a new shell.

like image 69
Scott Wales Avatar answered Oct 04 '22 03:10

Scott Wales


You just have to rename the buffer, here's a function to start zsh and prompt for the buffer name:

(defun zsh (buffer-name)
  "Start a terminal and rename buffer."
  (interactive "sbuffer name: ")
  (term "/bin/zsh")
  (rename-buffer buffer-name t))
like image 24
Harpo Avatar answered Oct 04 '22 02:10

Harpo