unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Juha Nieminen <juha.nieminen@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Always use UTF-8 mode with certain files
Date: Tue, 23 Apr 2013 15:25:48 +0300	[thread overview]
Message-ID: <CAJYAUQs8m761BcDRP4Bt9Ebj-YhbXm+q9UWqm0DyWOqnZAmP6g@mail.gmail.com> (raw)

Hello.

I would like for emacs to always use UTF-8 mode when opening certain
files (similarly as to what happens if I do a C-x C-m r utf-8, but
just when normally opening a file.) For example I would like this to
be the case when opening files with extensions .m, .mm and .h.

I don't know what to write in the .emacs file for this to happen. (And
obviously it shouldn't interfere with any other hooks that are
triggered when opening such files...)



             reply	other threads:[~2013-04-23 12:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-23 12:25 Juha Nieminen [this message]
2013-04-23 17:07 ` Always use UTF-8 mode with certain files Steven Degutis
2013-04-23 19:02 ` Peter Dyballa

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=CAJYAUQs8m761BcDRP4Bt9Ebj-YhbXm+q9UWqm0DyWOqnZAmP6g@mail.gmail.com \
    --to=juha.nieminen@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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).