File: esh-mode.el.html

Basically, Eshell is used just like shell mode (<M-x shell>). The keystrokes for navigating the buffer, and accessing the command history, are identical. Unlike shell mode, however, Eshell mode's governing process is Emacs itself. With shell mode, an inferior shell process is executed that communicates with Emacs via comint
-- a mode for handling sub-process interaction. Eshell mode, on
the other hand, is a truly native Emacs shell. No subprocess are invoked except the ones requested by the user at the prompt.

After entering a command, use <RET> to invoke it ([Command invocation]) . If there is a command on disk, it will be executed as in a normal shell. If there is no command by that name on disk, but a Lisp function with that name is defined, the Lisp function will be called, using the arguments passed on the command line.

Some of the other features of the command interaction mode are:

@ <M-RET> can be used to accumulate further commands while a
  command is currently running. Since all input is passed to the
  subprocess being executed, there is no automatic input queueing
  as there is with other shells.

@ <C-c C-t> can be used to truncate the buffer if it grows too
  large.

@ <C-c C-r> will move point to the beginning of the output of the
  last command. With a prefix argument, it will narrow to view
  only that output.

@ <C-c C-o> will delete the output from the last command.

@ <C-c C-f> will move forward a complete shell argument.

@ <C-c C-b> will move backward a complete shell argument.

Defined variables (23)

eshell-buffer-maximum-linesThe maximum size in lines for eshell buffers.
eshell-command-repeat-mapKeymap to repeat eshell-command key sequences. Used in ‘repeat-mode’.
eshell-directory-nameThe directory where Eshell control files should be kept.
eshell-exit-hookA hook that is run whenever ‘eshell’ is exited.
eshell-expand-input-functionsFunctions to call before input is parsed.
eshell-first-time-mode-hookA hook that gets run the first time ‘eshell-mode’ is entered.
eshell-first-time-pA variable which is non-nil the first time Eshell is loaded.
eshell-input-filter-functionsFunctions to call before input is processed.
eshell-kill-on-exitIf non-nil, kill the Eshell buffer on the ‘exit’ command.
eshell-mode-abbrev-tableAbbrev table for ‘eshell-mode’.
eshell-mode-hookA hook that gets run when ‘eshell-mode’ is entered.
eshell-mode-mapKeymap for ‘eshell-mode’.
eshell-mode-syntax-tableSyntax table for ‘eshell-mode’.
eshell-mode-unload-hookA hook that gets run when ‘eshell-mode’ is unloaded.
eshell-output-filter-functionsFunctions to call before output is displayed.
eshell-password-prompt-regexpRegexp matching prompts for passwords in the inferior process.
eshell-preoutput-filter-functionsFunctions to call before output is inserted into the buffer.
eshell-scroll-show-maximum-outputControls how interpreter output causes window to scroll.
eshell-scroll-to-bottom-on-inputControls whether input to interpreter causes window to scroll.
eshell-scroll-to-bottom-on-outputControls whether interpreter output causes window to scroll.
eshell-send-direct-to-subprocessesIf t, send any input immediately to a subprocess.
eshell-skip-prompt-functionA function called from beginning of line to skip the prompt.
eshell-status-in-mode-lineIf non-nil, let the user know a command is running in the mode line.

Defined functions (46)

eshell-backward-argument(&optional ARG)
eshell-begin-on-new-line()
eshell-beginning-of-input()
eshell-beginning-of-output()
eshell-bol()
eshell-bookmark-jump(BOOKMARK)
eshell-bookmark-make-record()
eshell-command-finished()
eshell-command-started()
eshell-copy-old-input()
eshell-end-of-output()
eshell-find-tag(&optional TAGNAME NEXT-P REGEXP-P)
eshell-forward-argument(&optional ARG)
eshell-get-old-input(&optional USE-CURRENT-REGION)
eshell-goto-input-start()
eshell-handle-ansi-color()
eshell-handle-control-codes()
eshell-interactive-print(STRING)
eshell-kill-buffer-function()
eshell-kill-input()
eshell-kill-new()
eshell-kill-output()
eshell-life-is-too-much()
eshell-mark-output(&optional ARG)
eshell-mode()
eshell-move-argument(LIMIT FUNC PROPERTY ARG)
eshell-output-filter(PROCESS STRING)
eshell-parse-command-input(BEG END &optional ARGS)
eshell-postoutput-scroll-to-bottom()
eshell-preinput-scroll-to-bottom()
eshell-push-command-mark()
eshell-queue-input(&optional USE-REGION)
eshell-repeat-argument(&optional ARG)
eshell-reset(&optional NO-HOOKS)
eshell-run-output-filters()
eshell-send-eof-to-process()
eshell-send-input(&optional USE-REGION QUEUE-P NO-NEWLINE)
eshell-send-invisible()
eshell-show-maximum-output(&optional INTERACTIVE)
eshell-show-output(&optional ARG)
eshell-truncate-buffer()
eshell-update-markers(PMARK)
eshell-watch-for-password-prompt()
eshell/clear(&optional SCROLLBACK)
eshell/clear-scrollback()
eshell/exit()

Defined faces (0)