From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Ballard Newsgroups: gmane.emacs.help Subject: what is this called? Date: Sat, 29 Apr 2006 00:17:45 GMT Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146271243 23378 80.91.229.2 (29 Apr 2006 00:40:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Apr 2006 00:40:43 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 29 02:40:40 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FZdVf-00039A-U0 for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Apr 2006 02:40:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FZdVf-0004h7-Ep for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Apr 2006 20:40:31 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny03.POSTED!de648aa3!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-Lines: 32 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-NNTP-Posting-Host: 71.243.69.3 Original-X-Complaints-To: abuse@verizon.net Original-X-Trace: trndny03 1146269865 71.243.69.3 (Fri, 28 Apr 2006 20:17:45 EDT) Original-NNTP-Posting-Date: Fri, 28 Apr 2006 20:17:45 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:139087 Original-To: help-gnu-emacs@gnu.org 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:34708 Archived-At: If I put "-*-Shell-script-*-" at the top of a file I get shell-script mode which gives me suitable coloring for ordinary text files where I like to use "#" to gray-out unimportant lines; these files are plain text and are not any kind of shell scripts; I'm just using shell-script mode for its color treatment. The problem is \C-c \C-c in shell-script mode is a binding that conflicts w/the editing of these plain text files; so I thought I'd look for another mode where I can get shell-script mode style coloring but w/o that binding. But I don't know what "-*-Shell-script-*-" is called so when I tried using asm-mode as a substitute I couldn't figure out what top-line designator it requires to load asm-mode when I load the file. So can someone tell me what this top-line thing is called? Does every mode have this thing available to it? Is it easy to figure out each mode's 'top-line' thing based on the mode name? (I looked in sh*.el and didn't find the shell-script designator in there anywhere). I understand I can undo the shell-script mode binding - don't want to do that. I also understand I can use alist (I think it's called) to also invoke the desired mode for these text files - I don't want to do that either... Mike --