From: Dave Pearson Newsgroups: comp.os.msdos.djgpp Subject: Re: newbie needs help configuring emacs Date: Tue, 8 Apr 1997 08:33:41 GMT Organization: Hagbard's World (A Private Internet Host) Sender: usenet AT hagbard DOT demon DOT co DOT uk Message-ID: References: <5ibf77$jnv AT gerry DOT cc DOT keele DOT ac DOT uk> Lines: 35 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On 7 Apr 1997 18:42:47 GMT, G.W. Owen wrote: > Well heres a different one then. My copy of emacs works fine under > DOS and Windows 3.11, but under bash.exe, it complains that it > cannot find the termcap (it doesn't exist) unless I unset the 'term' > variable. Is this the only workaround? I solved this problem by adding the following to $DJDIR/DJGPP.ENV: ---------------------------------------------------------------------- [emacs] TERM= SHELL=c:/bin/bash -login ---------------------------------------------------------------------- As you can see I also set the SHELL so that I get exactly what I want when I suspend emacs. The other possibility would be to add something like the following to ~/[._]profile: function emacs() { ( unset TERM;emacs $* ) } That's off the top of my head and I've not tested it, but I use something similar in a different situation under bash on my Linux box. -- Take a look in Hagbard's World: | w3ng - The WWW Norton Guide reader. http://www.acemake.com/hagbard/ | ng2html - The NG to HTML converter. Also available in the UK: | eg - Norton Guide reader for Linux. http://www.hagbard.demon.co.uk/ | dgscan - DGROUP scanner for Clipper.