[net.emacs] Emacs Initialization & TERMCAP Questions

colbert@spp1.UUCP (11/01/84)

I have 2 questions:

	1) I'm using a Cit-101 & for some reason Emacs thinks that
	   I only have 79 columns eventhough the termcap file indicates
	   that the Cit-101 has 80 columns.  Does anyone now how I can get
	   Emacs to use all 80 columns?

	2) I would like to have text-mode as my default mode when entering
	   Emacs (unless the file is a scribe, TeX, or C file), however,
	   I haven't been able to get my profile configured properly.
	   (All of the other modes seem to work as desired)
	   Does anyone know how to do this?

	   Currently, my profile file looks like the following:

	   (autoload "time"	      "time")
	   (autoload "text-mode"      "text-mode.ml")
	   (autoload "TeX-mode"	      "TeX-mode.ml")
	   (autoload "scribe-mode"    "scribe.ml")
	   (autoload "power-c-mode"   "/home/colbert/emacs/maclib/power-c.ml")
	   (autoload "electric-lisp-mode"	"electric-lisp.ml")
	   .
	   .
	   .
	   ; set default mode as text-mode
	   (load "text-mode.ml")
	   (text-mode)

	   ; set alternate modes when appropos
	   (auto-execute "power-c-mode"		"*.c")
	   (auto-execute "power-c-mode"		"*.h")
	   (auto-execute "electric-lisp-mode"	"*.ml")
	   (auto-execute "TeX-mode"		"*.tex")
	   (auto-execute "scribe-mode"		"*.mss")

	   (time)



Thanks,

Ed Colbert

chris@gargoyle.UChicago.UUCP (Chris Johnston) (11/06/84)

1.  If I remember correctly... you need to set emacs for one less column
than is on the screen to keep the cursor from scrolling up the screen when a
character is typed on the last column of the last line.

2.  Always start up in text-mode..
(auto-execute "text-mode" "*\0")
Stifle those screams.
This trick was developed by Toby Harness and Dawn Bunting @ UChicago


Chris Johnston

Fone:      312 962-8440
CSNet:     chris@UChicago.CSNet
ARPA:      johnston@anl-mcs.ARPA
UUCP:      ...!ihnp4!gargoyle!chris
MailNet:   j1.johnston@UChicago.MailNet

chris@umcp-cs.UUCP (Chris Torek) (11/09/84)

Actually, (auto-execute "text-mode" "/*") is a little bit nicer and
also works (since all path names start with /).

By the way, I seem to remember the termcap driver always using ``co#''-1
columns, instead of checking the :am: flag, in the distributed versions
of Emacs.  If you are using a terminal for which there is a special
driver, then you may need source to fix the ``scrolls from last line''
problem.
-- 
(This mind accidently left blank.)

In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (301) 454-7690
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:	chris@umcp-cs		ARPA:	chris@maryland