From: Mike Ballard <dont_w@nt_spam.org>
Subject: what is this called?
Date: Sat, 29 Apr 2006 00:17:45 GMT [thread overview]
Message-ID: <m2ejzhb2ll.fsf@west_f1.net> (raw)
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
--
next reply other threads:[~2006-04-29 0:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-29 0:17 Mike Ballard [this message]
2006-04-29 0:29 ` what is this called? Johan Bockgård
2006-04-30 0:02 ` Mike Ballard
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2ejzhb2ll.fsf@west_f1.net \
--to=dont_w@nt_spam.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.