[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Language identification (was: using libmagic in Emacs)

From: Juri Linkov
Subject: Language identification (was: using libmagic in Emacs)
Date: Fri, 28 Aug 2009 03:27:35 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu)

> I often wish that files would open in Emacs with correct mode
> more often when there is no file extension.

In `auto-mode-alist' you can see that with the exception of
`archive-mode', `doc-view-mode' and `image-mode', all remaining
modes are programming text modes.  It would be more useful
to identify file types for these modes that libmagic can't do.
Do you know a library that identifies programming languages?
Such a library might be implemented using a Bayesian classifier
trained on a sufficiently large corpus of different programming

Juri Linkov

reply via email to

[Prev in Thread] Current Thread [Next in Thread]