From: Angelina Carlton <brat@magma.ca>
Subject: how can I tell emacs to treat a text file as html?
Date: Sat, 9 Apr 2005 13:03:08 -0400 [thread overview]
Message-ID: <20050409170308.GA1054@magma.ca> (raw)
Hello
I use a bash based blogging software called nanoblogger. It lets you
use the editor of your choice and I had set this to be emacsclient.
The blog script then sends /tmp/nb_entry1078.html to my already
running emacs and I can edit using html syntax hilighting as emacs
recognizes the file type.
This worked fine until the latest version of the software now sends
a txt file instead. /tmp/nb_entry1078.txt
Emacs of course thinks this is plain text which is right, but I would
like to treat it as html, actually XHTML, but either would do.
The blog conf file has:
EDITOR="emacslient";
I cant find in my documentation a way to set EDITOR to
"emacsclient --"treat this as html"
Is this possible from the command line? Or is there a way to turn on
html font locking from inside emacs even if the file is txt? This
would be acceptable if I could bind it to like F8 or something.
Thanks in advance..
--
Angelina Carlton
next reply other threads:[~2005-04-09 17:03 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-09 17:03 Angelina Carlton [this message]
[not found] <mailman.931.1113065284.2895.help-gnu-emacs@gnu.org>
2005-04-09 17:27 ` how can I tell emacs to treat a text file as html? Albert Reiner
2005-04-09 17:43 ` Angelina Carlton
2005-04-09 18:11 ` Pascal Bourguignon
2005-04-09 18:46 ` Angelina Carlton
2005-04-09 18:34 ` Stefan Monnier
2005-04-09 19:39 ` Angelina Carlton
2005-04-09 22:30 ` Angelina Carlton
[not found] ` <mailman.951.1113084713.2895.help-gnu-emacs@gnu.org>
2005-04-10 1:15 ` Pascal Bourguignon
2005-04-10 5:16 ` Joe Corneli
[not found] ` <mailman.961.1113108735.2895.help-gnu-emacs@gnu.org>
2005-04-14 12:45 ` Stefan Monnier
2005-04-15 7:47 ` Steinar Børmer
2005-04-15 8:22 ` Thien-Thi Nguyen
2005-04-15 13:36 ` Stefan Monnier
2005-04-15 14:44 ` Joe Corneli
[not found] ` <mailman.1644.1113577291.2895.help-gnu-emacs@gnu.org>
2005-04-15 15:48 ` Stefan Monnier
2005-04-15 18:00 ` kgold
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=20050409170308.GA1054@magma.ca \
--to=brat@magma.ca \
/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).