* real tab completion in shell-mode
@ 2010-02-23 7:55 Nathaniel Flath
2010-02-23 18:43 ` Andreas Politz
0 siblings, 1 reply; 2+ messages in thread
From: Nathaniel Flath @ 2010-02-23 7:55 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 313 bytes --]
Hello,
Is there any way to get shell mode to use the background shell's (zsh or
bash) tab completion as opposed to just tab-completing filenames? I know
about ansi-term, but I hate how it steals a lot of my keybindings and so I
would prefer it if I could get this to work in shell-mode.
Thanks,
Nathaniel Flath
[-- Attachment #2: Type: text/html, Size: 336 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: real tab completion in shell-mode
2010-02-23 7:55 real tab completion in shell-mode Nathaniel Flath
@ 2010-02-23 18:43 ` Andreas Politz
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Politz @ 2010-02-23 18:43 UTC (permalink / raw)
To: help-gnu-emacs
Nathaniel Flath <flat0103@gmail.com> writes:
> Hello,
> Is there any way to get shell mode to use the background shell's
> (zsh or bash) tab completion as opposed to just tab-completing
> filenames? I know about ansi-term, but I hate how it steals a lot
> of my keybindings and so I would prefer it if I could get this to
> work in shell-mode.
There is not really a clean way to implement this for different reasons.
>
> Thanks,
> Nathaniel Flath
A while ago, I did it anyway and wrote a special mode for bash-shells
which features
+ emulation of bash completion
+ dir-tracking (local and remote)
+ tracking of history files
+ displaying dir stack in header line
I took the opportunity to comment the code somewhat, you may give it
a try, if you dare:
http://www.fh-trier.de/~politza/emacs/bash-mode-1_0.tgz
Extract it somewhere in your load-path and read the commentary, or just
M-x bash RET
.
-ap
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-23 18:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-23 7:55 real tab completion in shell-mode Nathaniel Flath
2010-02-23 18:43 ` Andreas Politz
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.