Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!pyramid!hplabs!hplabsz!taylor From: taylor@hplabs.HP.COM (Dave Taylor) Newsgroups: comp.mail.elm Subject: Re: Elm config question Message-ID: <1534@hplabsz.HPL.HP.COM> Date: 2 Feb 88 09:34:17 GMT References: <4433@uwmcsd1.UUCP> Sender: taylor@hplabsz.HPL.HP.COM Distribution: na Organization: Hewlett-Packard Laboratories Lines: 45 David Rasmussen asks about changing the default values of various options within Elm for the entire user community. The easiest way to do this is to; 1. figure out what elmrc variable corrresponds to what actual variable in the program 2. change the default accordingly. The two files in question are ``src/read_rc.c'' for step 1, and ``hdrs/elm.h'' for step 2. Let's look at a few examples: To change "weed" to be OFF by default: % cgrep '"weed"' src/read_rc.c -------- } else if (equal(word1, "weed")) { filter = is_it_on(word2); % grep filter hdrs/elm.h int filter = 1; /* flag: weed out header lines? */ To change the default - this is where to go. For "alwaysleave": % cgrep '"alwaysleave' src/read_rc.c -------- } else if (equal(word1, "alwaysleave") || equal(word1, "leave")) { always_leave = is_it_on(word2); % grep always_leave hdrs/elm.h int always_leave = 0; /* flag: always leave msgs pending? */ We can see that it defaults to FALSE. Does this make sense? Would an easier way of setting these defaults be worth the effort? If so, how would you like to see it done? --- Dave Taylor ps: Thanks to my collegue Tai Jin for the `cgrep' command....