bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#26229: 26.0.50; shell-mode: turning off input echoing


From: John Mastro
Subject: bug#26229: 26.0.50; shell-mode: turning off input echoing
Date: Thu, 23 Mar 2017 14:27:50 -0700

Manuel Uberti <address@hidden> wrote:
> After opening Emacs with emacs -Q, in scratch buffer I evaluate this:
>
> (setq comint-process-echoes t)
>
> Then:
>
> - M-x shell
> - ls RET
>
> Output:
>
> ~ % ls
> ~ % ls --color=auto --group-directories-first
> bin/        languagetool/  Pictures/    reveal.js/  tmp/

The `comint-process-echoes' variable is buffer-local, so you need to set
it in the shell buffer. Something like this should work:

    (defun my-init-shell-mode ()
      (setq comint-process-echoes t))

    (with-eval-after-load 'shell
      (add-hook 'shell-mode-hook #'my-init-shell-mode))

Hope that helps

        John





reply via email to

[Prev in Thread] Current Thread [Next in Thread]