From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelina Carlton Newsgroups: gmane.emacs.help Subject: how can I tell emacs to treat a text file as html? Date: Sat, 9 Apr 2005 13:03:08 -0400 Message-ID: <20050409170308.GA1054@magma.ca> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1113066978 5257 80.91.229.2 (9 Apr 2005 17:16:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Apr 2005 17:16:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 09 19:16:16 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DKJYu-0002nZ-P3 for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Apr 2005 19:16:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DKJ8e-00055P-TX for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Apr 2005 12:48:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DKJ7j-0004j2-0z for help-gnu-emacs@gnu.org; Sat, 09 Apr 2005 12:47:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DKJ7c-0004eb-0N for help-gnu-emacs@gnu.org; Sat, 09 Apr 2005 12:47:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DKJ7b-0004ai-RZ for help-gnu-emacs@gnu.org; Sat, 09 Apr 2005 12:47:47 -0400 Original-Received: from [206.191.0.250] (helo=mx2.magma.ca) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DKJNe-0004JW-Cz for help-gnu-emacs@gnu.org; Sat, 09 Apr 2005 13:04:22 -0400 Original-Received: from mail3.magma.ca (mail3.magma.ca [206.191.0.221]) by mx2.magma.ca (8.13.0/8.13.0) with ESMTP id j39H39QE027347 for ; Sat, 9 Apr 2005 13:03:10 -0400 Original-Received: from lemonjelly (ottawa-hs-64-26-176-100.s-ip.magma.ca [64.26.176.100]) by mail3.magma.ca (8.13.0/8.13.0) with ESMTP id j39H38we027703 for ; Sat, 9 Apr 2005 13:03:09 -0400 Original-Received: from orchid by lemonjelly with local (Exim 3.35 #1 (Debian)) id 1DKJMS-0000NG-00 for ; Sat, 09 Apr 2005 13:03:08 -0400 Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline User-Agent: Mutt/1.3.28i X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25507 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25507 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