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

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

Re: shell-mode autocompletion uglinesses


From: Romain FRANCOISE
Subject: Re: shell-mode autocompletion uglinesses
Date: Tue, 03 Dec 2002 23:59:00 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu)

Kai Großjohann writes:

> The following appears to integrate pcomplete into shell mode:

> (require 'shell)
> (define-key shell-mode-map (kbd "TAB") 'pcomplete)
> (add-hook 'shell-mode-hook 'pcomplete-shell-setup)

You might also want to add the following, if you want to have a
completion that behaves like the default completion:

(setq pcomplete-cycle-completions nil)

Otherwise you'll get the default cycling completion of pcomplete, which
is not very intuitive if you're used to Emacs in general, or to the
default Bash completion mechanism.

And beware, completion of things (filenames, directories) containing
spaces won't work.

        Romain.

-- 
Romain FRANCOISE <romain@orebokech.com> | I'm flooded out with energy,
it's a miracle -- http://orebokech.com/ | energy and deceit.


reply via email to

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