Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!wuarchive!swbatl!texbell!root From: root@texbell.sbc.com (Greg Hackney) Newsgroups: comp.mail.elm Subject: Re: Is there a global init file? Message-ID: <195@texbell.sbc.com> Date: 19 Aug 90 18:51:03 GMT References: <188@coplex.UUCP> Distribution: comp Organization: Southwestern Bell Lines: 39 In article <188@coplex.UUCP> dean@coplex.UUCP (Dean Brooks) writes: > I have been unable to find any mention of this, but is there a global >init file for elm? I don't follow this group much anymore, and don't run the latest version of Elm anymore, so I don't know if they put a global file in or not. A lot of default stuff is pre-configured in elm.h at compilation. However, it should be real easy to hack in a global .elmrc file in the file "read_rc.c": /* Look for the elmrc file */ sprintf(filename,"%s/%s", home, elmrcfile); if ((file = fopen(filename, "r")) == NULL) { dprint(2,(debugfile,"Warning:User has no \".elm/elmrc\" file\n\n")); /* look for old-style .elmrc file in $HOME */ sprintf(filename, "%s/.elmrc", home); if (access(filename, 00) != -1) { move_old_files_to_new(); /* try to open elmrc file again */ sprintf(filename,"%s/%s", home, elmrcfile); if((file = fopen(filename, "r")) == NULL) { dprint(2, (debugfile, "Warning: could not open new \".elm/elmrc\" file.\n")); ---> /* Look for the global elmrc file */ ---> sprintf(filename,"%s", GLOBAL_ELMRC_FILE); ---> if ((file = fopen(filename, "r")) == NULL) { ---> dprint(2,(debugfile,"Warning:User has no \".elm/elmrc\" file\n\n")); Some of the Elmheads can probably elaborate on what other effects this will have. -- Greg Hackney