简体   繁体   中英

Emacs… as your default shell?

Is it possible instead of loading /bin/bash, for my terminal to load emacs or emacsclient when I open it up, with a session for eshell? And is it feasible to ssh->screen from an emacs session without running into problems?

I want to do this purely to learn about emacs being as I like it so much.

No hate text, etc please :)

emacs -f eshell

EDIT: If you don't want to start a new emacs you can use emacsclient.

emacsclient -e '(eshell)'

Make sure you have started the server the best way to do it is to add (server-start) in your . emacs

You can set your shell to /usr/bin/emacs (or wherever it is) to make it your default shell. It will probably act weird though since Emacs is not a shell. It's an editor. Programs expect your shell to behave in a certain fashion and Emacs won't work that way.

You can do an Mx term ret to get a terminal from which you can connect to a remote machine and start a screen. I don't know about the quality of the emulation though. No harm trying.

Neither of these look useful to me and the former is definitely a trouble maker.

Yes you can. I did for a few months once. A few things act funny most can be tamed. It was a great laugh to see coworkers react when they saw me log in to emacs.

echo /usr/bin/emacs >> /etc/shells

chsh -s /usr/bin/emacs 

Just tried running screen from within Emacs (in a shell buffer), but I get the following:


angelv@vaso:~$ screen -D -R
Clear screen capability required.
angelv@vaso:~$ 

so I guess that's not possible. In any case, I don't see why you'd want this (and I use daily screen + emacs).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM