[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: python-mode from plain txt-files?
From: |
Eli Zaretskii |
Subject: |
Re: python-mode from plain txt-files? |
Date: |
Wed, 06 May 2020 22:20:19 +0300 |
> From: Andreas Röhler <andreas.roehler@easy-emacs.de>
> Date: Wed, 6 May 2020 21:13:47 +0200
>
> from emacs -Q, when opening file with ending ".txt" which contains
>
> #! /usr/bin/env python3
>
> python-mode is started. Is this correct? Understand the mode is ruled
> by a files ending, not just by some contents.
That's a simplification. The full story is described in the ELisp
manual, under set-auto-mode (node "Auto Major Mode").
> How to open such a file in fundamental-mode?
"M-x fundamental-mode RET"?
Or temporarily disable interpreter-mode-alist.