Open terminal from emacs


student

Is there a quick way (keyboard shortcut) to open a terminal emulator (urxvt in my case) in the same directory as the file currently in the emacs buffer ?

Ram

This combination M-!allows you to launch shell commands. You can use it to start a separate one urxvt.

M-! urxvt RET

I just tried it with xterm(I didn't urxvt) and it does open in the same directory as the file in the buffer.

If you want to define a shortcut, add something like this in your init file:

(global-set-key (kbd "C-c s") (kbd "M-! urxvt RET"))

In my case, I bound the shortcut to: Ctrl+ C- S.

Related


Open terminal from emacs

student Is there a quick way (keyboard shortcut) to open a terminal emulator (urxvt in my case) in the same directory as the file currently in the emacs buffer ? Ram This combination M-!allows you to launch shell commands. You can use it to start a separate on

Open emacs from terminal like vim?

Philip Kirkbride When I use the vi file.txtterminal, it will be replaced by the vim session. I'm playing with emacs and when I use emacs file.txtthe second window, emacs opens. Is there a way to use vim's behavior in emacs? Specifically, I want to open emacs f

Open emacs from terminal like vim?

Philip Kirkbride When I use the vi file.txtterminal, it will be replaced by the vim session. I'm playing with emacs and when I use emacs file.txtthe second window, emacs opens. Is there a way to use vim's behavior in emacs? Specifically, I want to open emacs f

Open emacs in terminal while editing crontab

Clodoldo I have set emacsas my default editor /etc/profile. when I want to use emacsin terminal . I open it with -nwoptions . How can I have the same behavior when crontab -epreventing it from opening in a window ? Sven you have to use export EDITOR="emacs

Open emacs in terminal while editing crontab

Clodoldo I have set emacsas my default editor /etc/profile. when I want to use emacsin terminal . I open it with -nwoptions . How can I have the same behavior when crontab -epreventing it from opening in a window ? Sven you have to use export EDITOR="emacs

How to open terminal from terminal

optimal I'm on ubuntu 12.04 and I use gnome terminal as default terminal. I need to open another terminal from the command line. I know I can use gnome-terminal to do this, but I want to run a command that always opens the default terminal, so that my scripts

How to open terminal from terminal

optimal I'm on ubuntu 12.04 and I use gnome terminal as default terminal. I need to open another terminal from the command line. I know I can use gnome-terminal to do this, but I want to run a command that always opens the default terminal, so that my scripts

How to open terminal from terminal

optimal I'm on ubuntu 12.04 and I use gnome terminal as default terminal. I need to open another terminal from the command line. I know I can use gnome-terminal to do this, but I want to run a command that always opens the default terminal so that my scripts c

Open Terminal from Eclipse

Sellin: Is there a plugin that provides an "open terminal here" option when right clicking on a folder in Eclipse? I found it , but it only seems to work on Windows, and I'm using Ubuntu. Kane: Easy Case is definitely what you're looking for. You can install i

Open Clion from Terminal

Gabriel Pellegrino I've been trying to set the path to the Clion directory in the computer to open this program with the command in the terminal, but it didn't work. If you read this and ask yourself: "What?". I want to start a C++ project as if using a normal

Open Terminal from Eclipse

Sellin: Is there a plugin that provides an "open terminal here" option when right clicking on a folder in Eclipse? I found it , but it only seems to work on Windows, and I'm using Ubuntu. Kane: Easy Case is definitely what you're looking for. You can install i

Open terminal from gVim

R0L3eX I was wondering if there was a way to compile a c++ file in gVim and then run it by pressing a button and opening a terminal with the corresponding cpp .out file. Now I have the following two lines in my .vimrc for compiling and running: map <F5> :<C-U>

Open Clion from Terminal

Gabriel Pellegrino I've been trying to set the path to the Clion directory in the computer to open this program with the command in the terminal, but it didn't work. If you read this and ask yourself: "What?". I want to start a C++ project as if using a normal

Open Clion from Terminal

Gabriel Pellegrino I've been trying to set the path to the Clion directory in the computer to open this program with the command in the terminal, but it didn't work. If you read this and ask yourself: "What?". I want to start a C++ project as if using a normal

Open Clion from Terminal

Gabriel Pellegrino I've been trying to set the path to the Clion directory in the computer to open this program with the command in the terminal, but it didn't work. If you read this and ask yourself: "What?". I want to start a C++ project as if using a normal

Open file from terminal

obviously When we want to open an application or file from the terminal, we type, for example, okular file.dvi This will open the app, but also show the status of the app. We can't close the terminal because it kills the process. Unfortunately, if you try to

Open file from terminal

obviously When we want to open an application or file from the terminal, we type, for example, okular file.dvi This will open the app, but also show the status of the app. We can't close the terminal because it kills the process. Unfortunately, if you try to

Open terminal from gVim

R0L3eX I was wondering if there was a way to compile a c++ file in gVim and then run it by pressing a button and opening a terminal with the corresponding cpp .out file. Now I have the following two lines in my .vimrc for compiling and running: map <F5> :<C-U>

Open Terminal from Eclipse

Sellin: Is there a plugin that provides an "open terminal here" option when right clicking on a folder in Eclipse? I found it , but it only seems to work on Windows, and I'm using Ubuntu. Kane: Easy Case is definitely what you're looking for. You can install i

Open terminal from gVim

R0L3eX I was wondering if there was a way to compile a c++ file in gVim and then run it by pressing a button and opening a terminal with the corresponding cpp .out file. Now I have the following two lines in my .vimrc for compiling and running: map <F5> :<C-U>

Open Clion from Terminal

Gabriel Pellegrino I've been trying to set the path to the Clion directory in the computer to open this program with the command in the terminal, but it didn't work. If you read this and ask yourself: "What?". I want to start a C++ project as if using a normal

Open Clion from Terminal

Gabriel Pellegrino I've been trying to set the path to the Clion directory in the computer to open this program with the command in the terminal, but it didn't work. If you read this and ask yourself: "What?". I want to start a C++ project as if using a normal

Open terminal from gVim

R0L3eX I was wondering if there was a way to compile a c++ file in gVim and then run it by pressing a button and opening a terminal with the corresponding cpp .out file. Now I have the following two lines in my .vimrc for compiling and running: map <F5> :<C-U>