all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
Subject: Re: editing mode: .ml files
Date: Mon, 19 Jun 2006 17:45:14 +1000	[thread overview]
Message-ID: <87r71leghh.fsf@tiger.rapttech.com.au> (raw)
In-Reply-To: mailman.3001.1150641574.9609.help-gnu-emacs@gnu.org

"r.stiltskin" <jkammet@yahoo.com> 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

  parent reply	other threads:[~2006-06-19  7:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2987.1150575886.9609.help-gnu-emacs@gnu.org>
2006-06-18  2:20 ` editing mode: .ml files Tim X
2006-06-18 10:34 ` Johan Bockgård
2006-06-18 14:39   ` r.stiltskin
2006-06-19 20:20     ` Kevin Rodgers
     [not found]     ` <mailman.3037.1150748521.9609.help-gnu-emacs@gnu.org>
2006-06-20  9:35       ` Mathias Dahl
2006-06-22  5:05         ` r.stiltskin
     [not found]   ` <mailman.3001.1150641574.9609.help-gnu-emacs@gnu.org>
2006-06-19  7:45     ` Tim X [this message]
2006-06-19  8:00     ` Johan Bockgård
2006-06-22  4:51       ` r.stiltskin
2006-06-17 20:17 r.stiltskin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r71leghh.fsf@tiger.rapttech.com.au \
    --to=timx@nospam.dev.null \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.