How can I open a new window (for example using C-x 3
) into a new buffer, rather than a mirrored buffer that just echoes what I type.
So for example, let's say I'm messing around with python and I want to run the script in the shell
. As it is currently I do this: C-x 3
, M-x shell
and then start it up and running. I'd rather just C-x 3
and it automatically opens into shell
. I'm really new to Emacs so I don't know where to look for this.
In emacs it is easy to define custom commands and bind it to keys. For instance, if you add this to your init file:
You will have what you want when you type C-c 3. In general, you can find documentation about what a key binding does by typing C-h k and the keybinding. From that point, it is easy to chain existing commands into new ones.