unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim X <timx@nospam.dev.null>
Subject: Re: editing mode: .ml files
Date: Sun, 18 Jun 2006 12:20:08 +1000	[thread overview]
Message-ID: <87odwrp5lz.fsf@tiger.rapttech.com.au> (raw)
In-Reply-To: mailman.2987.1150575886.9609.help-gnu-emacs@gnu.org

"r.stiltskin" <jkammet@yahoo.com> writes:

> When I open a file with a .ml extension the mode line says "(Lisp Slime
> [??])"  (when I haven't loaded slime.)
>
> Where's the connection between .ml and Slime?   What can I do to change
> this?
>
>
> --
> View this message in context: http://www.nabble.com/editing-mode%3A-.ml-files-t1804515.html#a4917903
> Sent from the Emacs - Help forum at Nabble.com.
>
>

I suspect the slime package has set an association between .ml 
in the auto-mode-alist 

,----
| auto-mode-alist is a variable defined in `files.el'.
| Its value is shown below.
| 
| Documentation:
| Alist of filename patterns vs corresponding major mode functions.
| Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL).
| (NON-NIL stands for anything that is not nil; the value does not matter.)
| Visiting a file whose name matches REGEXP specifies FUNCTION as the
| mode function to use.  FUNCTION will be called, unless it is nil.
| 
| If the element has the form (REGEXP FUNCTION NON-NIL), then after
| calling FUNCTION (if it's not nil), we delete the suffix that matched
| REGEXP and search the list again for another match.
| 
| If the file name matches `inhibit-first-line-modes-regexps',
| then `auto-mode-alist' is not processed.
| 
| The extensions whose FUNCTION is `archive-mode' should also
| appear in `auto-coding-alist' with `no-conversion' coding system.
| 
| See also `interpreter-mode-alist', which detects executable script modes
| based on the interpreters they specify to run,
| and `magic-mode-alist', which determines modes based on file contents.
| 
`----

If the association exists in auto-mode-alist, you will need to find
the slime setup code which creates that association and remove it. On
many Linux distros, this can be found in /etc/emacs/site-lisp.d or
somewhere similar. 

Tim

-- 
tcross (at) rapttech dot com dot au

       reply	other threads:[~2006-06-18  2:20 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 ` Tim X [this message]
2006-06-18 10:34 ` editing mode: .ml files 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
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87odwrp5lz.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).