help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: difficulty entering balance mode (SOLVED)


From: Emanuel Berg
Subject: Re: difficulty entering balance mode (SOLVED)
Date: Tue, 28 Jul 2015 23:28:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Haines Brown <haines@engels.histomat.net> writes:

> I had assumed, incorrectly perhaps, that if two
> files are identical in respect to their observable
> properties (what is returned by $ ls -la), the
> failure of one must be due to its content.

In the context of this discussion so far, no, the file
should open fine either way (regardless of content)
and the only thing that would affect what mode Emacs
is to put it in is the extension (and, the Elisp that
tells Emacs what to do with files of such extentions).

However, there are a couple of special cases that
I know of.

For example, put this as the first line in an
elisp.el file:

    ;; -*- text -*-

Despite the .el extention, what you get is the
text mode!

Or, try evaluating this:

    (setq magic-mode-alist '(("/\\* cpp \\*/" . c++-mode)))

Then, put this first in a file (without the whitespace
indentation):

    /* cpp */

Now it should be in the C++ mode on startup.

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

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