From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: editing mode: .ml files Date: Mon, 19 Jun 2006 17:45:14 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87r71leghh.fsf@tiger.rapttech.com.au> References: <4917903.post@talk.nabble.com> <87odwrp5lz.fsf@tiger.rapttech.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1150706560 27775 80.91.229.2 (19 Jun 2006 08:42:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Jun 2006 08:42:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 19 10:42:38 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FsFKv-0006P1-8y for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Jun 2006 10:42:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FsFKu-00086t-OC for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Jun 2006 04:42:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.astraweb.com!newsrouter-eu.astraweb.com!193.201.147.67.MISMATCH!feeder2.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!138.199.65.86.MISMATCH!sn-ams-06!sn-xt-ams-04!sn-post-ams-02!sn-post-ams-01!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:VZFAc9otVK/zlxxLHzwdQtFQaUc= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 47 Original-Xref: shelby.stanford.edu gnu.emacs.help:139916 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35540 Archived-At: "r.stiltskin" writes: > Yes, I haven't gotten around to installing an ml-mode yet, but I'd like to > get rid of the lisp association. I see that it appears in files.el in the > section: > (defvar auto-mode-alist > (mapc > (lambda (elt) > (cons (purecopy (car elt)) (cdr elt))) > '... > ("\\.ml\\'" . lisp-mode) > ...' > but deleting the .ml line from files.el doesn't seem to have any effect -- > emacs still comes up with ("\\.ml\\'" . lisp-mode) included in > auto-mode-alist. > > How can I get rid of it? > -- > View this message in context: http://www.nabble.com/editing-mode%3A-.ml-files-t1804515.html#a4924006 > Sent from the Emacs - Help forum at Nabble.com. > > > I just checked my system auto-mode-alist. It doesn't have an entry for slime-mode, but it does have one for lisp-mode associated with the .ml suffix. If yours is associated with slime-mode, then I would suspect it is being added by some initialisation code that sets up slime. finding where this code is depends on your distribution. Under Debian, it is in /etc/emacs/site-lisp.d If you only have the association between .ml and lisp-mode, you need to either find the bit of code which adds the entry to the association list and remove it (assuming its a bit of setup code and not part of the core emacs code). The other thing you could try doing is re-setting the variable in your .emacs file. alternatively, install one of the ML modes and see if that association overrides the lisp one. One final possible solution is to use either a mode line at the top of your file or file variables at the bottom to force the mode you want. Tim -- tcross (at) rapttech dot com dot au