News for hackers. Stuff that matters.
Re:Eschewing Zshell for Emacs Shell by codychan on Saturday July 22, 2017 @02:53AM (#14825792)
There is something wrong with the `eshell/x` function, if start `Ctrl-!` in scratch buffer, after execute `x` in eshell prompt, there will `Wrong type argument: integer-or-marker-p, nil x` in scratch buffer; if I start `Ctrl-!` in init.el, there will be `Marker points into wrong buffer: #<marker at 955 in scratch> x` in my init.el file.
Re:Eschewing Zshell for Emacs Shell by oskarth on Saturday July 22, 2017 @04:59AM (#14826110)
This works for me:

  (defun eshell/x ()
      (interactive)
      (insert "exit")
      (eshell-send-input)
      (delete-window))