unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* automatic setting of mode
@ 2009-07-03 14:56 ?manu*
  2009-07-03 21:06 ` Peter Dyballa
       [not found] ` <mailman.1779.1246655224.2239.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: ?manu* @ 2009-07-03 14:56 UTC (permalink / raw)
  To: help-gnu-emacs

I know that it is possible to write some comments at the beginning of
a file, to tell emacs to open the file with a specified mode. For
example I use the line:

-*- mode: html; -*-

in some files that I would like to edit in HTML mode (even if they
don't have the html extension).

Now I wonder If there is a similar command to get the following:

1. automatically issuing the command
M-x tex-pdf
which tells emacs to compile a LaTeX file with pdflatex.

2. automatically issuing the command
M-x set-buffer-file-coding-system utf-8
telling emacs that the file is encoded in utf8

thank you for any help

E.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-04 13:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-03 14:56 automatic setting of mode ?manu*
2009-07-03 21:06 ` Peter Dyballa
     [not found] ` <mailman.1779.1246655224.2239.help-gnu-emacs@gnu.org>
2009-07-04 11:58   ` ?manu*
2009-07-04 12:43     ` Lennart Borgman
2009-07-04 13:58     ` Peter Dyballa

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).