[emacs-berlin] shell from inside Emacs
Andreas Röhler
andreas.roehler at easy-emacs.de
Mon Sep 30 07:37:33 UTC 2024
Am 29.09.24 um 20:02 schrieb jman:
>
> Andreas Röhler <andreas.roehler at easy-emacs.de> writes:
>
>> running a shell from inside Emacs feels one of the most useful
>> features for me. That's because,
>> output goes to an Emacs-buffer, which all edit-utilities at your
>> dispose.
>
> I have always been split about using a shell in Emacs. While it would
> save me some context switch to
> do tasks, it's a text buffer and I have always found confusing that:
> 1) Keybindings that I use VERY often (`C-p`, `C-n`, `C-r`, ...) do
> something else
Hmm, that's right. Commonly don't remember any key, just using it as a
kind of natural language.
> 2) environment variables and alias are not loaded correctly (depends
> on the emacs shell?)
After M-x shell RET input of env RET should display environment vars.
Like
SHELL=/bin/bash
Or, questioning for an alias:
$ type en
$ en ist ein Alias von »~/MY_PATH/emacs --debug-init --font 'Liberation
Mono-18' &«.
There is one caveat: AFAIU vars are loaded only once at startup. If some
of this vars changes during session, Emacs doesn't notice that, needs a
restart.
> 3) unsure what happens when launching GUI applications or
> handling/redirecting streams (stdout,
> stderr)
>
Nothing uncommon here so far. Works as expected.
Cheers,
Andreas
More information about the emacs-berlin
mailing list