Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site sdcarl.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!whuxl!houxm!ihnp4!mhuxn!mhuxr!ulysses!allegra!mit-eddie!genrad!decvax!ittvax!dcdwest!sdcsvax!sdcc3!sdcarl!rusty From: rusty@sdcarl.UUCP (rusty c. wright) Newsgroups: net.emacs Subject: find-file-hook problem (gnuemacs) Message-ID: <218@sdcarl.UUCP> Date: Sat, 29-Jun-85 15:11:24 EDT Article-I.D.: sdcarl.218 Posted: Sat Jun 29 15:11:24 1985 Date-Received: Mon, 1-Jul-85 05:47:57 EDT Reply-To: rusty@sdcarl.UUCP (Rusty Wright) Organization: Computer Audio Research Lab, UCSD, San Diego, Calif. Lines: 25 I decided that since i don't like the *scratch* buffer being put in lisp mode that i should be able to fix my .emacs file to put it in fundamental mode. That i was able to do. Then i decided that i should be able to disable the automatic setting of c mode in a similar fashion. The following is what i came up with, but it doesn't work (for c mode; it works fine for the *scratch* buffer). If i type in the if statement manually (using esc esc [eval-expression]) it works, but it won't work when it is used thusly in my .emacs file. What's wrong? (setq find-file-hook (progn (if (string-equal (eval mode-name) "C") (fundamental-mode)) (if (string-equal (buffer-name) "*scratch*") (fundamental-mode)) ) ) As far as i'm concerned, c mode is much too "clever" for my tastes. It has way too many stylistic decisions built into it to be generally useful (and besides, the style used is especially hideous). -- rusty c. wright {ucbvax,ihnp4,akgua,hplabs,sdcsvax}!sdcarl!rusty