Bash autocompletion in Emacs shell-mode

后端 未结 9 1474
有刺的猬
有刺的猬 2020-12-04 08:14

In the GNOME Terminal, Bash does smart auto-completion. For example

apt-get in

becomes

apt-get install
         


        
9条回答
  •  执笔经年
    2020-12-04 09:12

    I make no claims to being an emacs expert but this should solve your problem:

    Create: ~/.emacs

    Add to it:

    (require 'shell-command) (shell-command-completion-mode)

    Emacs takes over the shell so BASH settings don't carry through. This will set auto completion for EMACS itself.

提交回复
热议问题