Mehrad, (edited )
@Mehrad@fosstodon.org avatar

You know, sometimes #Emacs function/variable names are hilarious and yet extremely unintuitive. I wanted to kill the window after eshell was exitted. I tried M-x eshell with kill, terminate, exit, or end, and I came up empty.

Out of frustration I searched online only to find that, lo and behold, the function I was trying to advise is 🥁 🥁 🥁 eshell-life-is-too-much 😂 and guess what is the description in the documentation:
"Kill the current buffer (or bury it). Good-bye Eshell."🤣

eddelbuettel,
@eddelbuettel@mastodon.social avatar

@Mehrad C-x k ?

Also, 'exit' in the shell 😉

Anyway, I keep mine running 'forever' as I run a particular recurrent task there and likes separate bash history keeping....

Mehrad,
@Mehrad@fosstodon.org avatar

@eddelbuettel

I just tried the following:

  1. emacs -Q
  2. `C-x 3´
  3. M-x eshell
  4. C-x k

but at the end I still had two windows in the same frame. Are you sure you don't have a particular configuration for this?

I ultimately solved it by using the eshell-exit-hook:

https://codeberg.org/mehrad/.emacs.d/src/branch/main/config.org#headline-68

Mehrad,
@Mehrad@fosstodon.org avatar

@eddelbuettel

I just tried the following:

  1. emacs -Q
  2. `C-x 3´
  3. M-x eshell
  4. C-x k

but at the end I still had two windows in the same frame. Are you sure you don't have a particular configuration for this?

I ultimately solved it by using the eshell-exit-hook:

https://codeberg.org/mehrad/.emacs.d/src/branch/main/config.org#headline-68

eddelbuettel,
@eddelbuettel@mastodon.social avatar

@Mehrad That strikes me as perfectly fine. You asked for a vertical split. You get to keep your vertical split.

I offered C-x k as alternative to the (humorous !!) function you listed. It works for me, and it sounds like you found something that works for you so all is good in the land of The One Editor.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • emacs
  • Durango
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • JUstTest
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ethstaker
  • osvaldo12
  • modclub
  • normalnudes
  • provamag3
  • tester
  • anitta
  • Leos
  • megavids
  • lostlight
  • All magazines