Is there a fast way (keyboard shortcut) to open a terminal emulator (in my case urxvt) in the same directory as the file in the current emacs buffer?
Open terminal from emacs
emacskeyboard shortcuts
emacskeyboard shortcuts
Is there a fast way (keyboard shortcut) to open a terminal emulator (in my case urxvt) in the same directory as the file in the current emacs buffer?
Best Answer
The combination
M-!
allows you to launch shell commands. You could use it to launch a separateurxvt
.I just tried it with
xterm
(I don't haveurxvt
) and it did open in the same directory as the file in the buffer.If you want to define a shortcut add something similar in your init file:
In my case I bound the shortcut to: Ctrl+C - S.