From: Sergey Bolshakov <sbolshakov@altlinux.ru>
To: community@altlinux.ru
Subject: Re: [Comm] emacs and file extension
Date: Wed, 27 Apr 2005 15:28:05 +0400
Message-ID: <m3sm1cjw6y.fsf@hammer.malta.altlinux.ru> (raw)
In-Reply-To: <426F715C.90707@ricom.ru> (Alexey Morsov's message of "Wed, 27 Apr 2005 15:02:52 +0400")
>>>>> "Alexey" == Alexey Morsov <samurai@ricom.ru> writes:
> Привет,
> а почему в альтовской сборке emacs смотрит только на расширение файла
> при выборе -mode но не смотрит в контент.
> Т.е. скажем если я создам файл some и первой строкой в нем впишу
> #!/usr/bin/env python
> и потом открою его emacs-ом, то он не считает это Python кодом :(
> Это можно как-то исправить, а то не удобно обзывать программы name.py
> или выбирать каждый раз режим M-x python-mode :(
> PS: В FC привсей моем не любви к оной при открытии этого файла в emacs
> выставляется Python-mode
Вставьте в конец такого файла следующее:
# local variables:
# mode: python
# end:
--
next prev parent reply other threads:[~2005-04-27 11:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-27 11:02 Alexey Morsov
2005-04-27 11:28 ` Sergey Bolshakov [this message]
2005-04-27 11:47 ` [Comm] [JT] " Alexey I. Froloff
2005-04-27 12:52 ` Alexey Morsov
2005-04-27 12:53 ` [Comm] " Alexey Morsov
2005-04-27 14:43 ` Sergey Bolshakov
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=m3sm1cjw6y.fsf@hammer.malta.altlinux.ru \
--to=sbolshakov@altlinux.ru \
--cc=community@altlinux.ru \
/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
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git