Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!watmath!clyde!burl!mgnetp!ihnp4!zehntel!hplabs!hao!seismo!rlgvax!cal-unix!umcp-cs!chris From: chris@umcp-cs Newsgroups: net.unix-wizards,net.emacs Subject: Re: text-mode in emacs Message-ID: <8102@umcp-cs.UUCP> Date: Sat, 11-Aug-84 22:59:18 EDT Article-I.D.: umcp-cs.8102 Posted: Sat Aug 11 22:59:18 1984 Date-Received: Tue, 14-Aug-84 01:00:10 EDT References: <510@fritz.UUCP> Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 17 Say what? Try this: (autoload "text-mode") (auto-execute "text-mode" "*.nr") (auto-execute "text-mode" "/tmp/Re*") The auto-execute function takes a function name and a ``pattern'' (which must be either an asterisk followed by non-asterisk text or non-asterisk text followed by an asterisk or just an asterisk, whew!) and runs the named function whenever you visit a file whose name matches the ``pattern''. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci (301) 454-7690 UUCP: {seismo,allegra,brl-bmd}!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@maryland