all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* what is this called?
@ 2006-04-29  0:17 Mike Ballard
  2006-04-29  0:29 ` Johan Bockgård
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Ballard @ 2006-04-29  0:17 UTC (permalink / 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
-- 

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

* Re: what is this called?
  2006-04-29  0:17 what is this called? Mike Ballard
@ 2006-04-29  0:29 ` Johan Bockgård
  2006-04-30  0:02   ` Mike Ballard
  0 siblings, 1 reply; 3+ messages in thread
From: Johan Bockgård @ 2006-04-29  0:29 UTC (permalink / raw)


Mike Ballard <dont_w@nt_spam.org> writes:

> Is it easy to figure out each mode's 'top-line' thing based on the
> mode name?

Yes. It's "foo-mode" without the "-mode".

See (info "(emacs)Choosing Modes")

-- 
Johan Bockgård

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

* Re: what is this called?
  2006-04-29  0:29 ` Johan Bockgård
@ 2006-04-30  0:02   ` Mike Ballard
  0 siblings, 0 replies; 3+ messages in thread
From: Mike Ballard @ 2006-04-30  0:02 UTC (permalink / raw)



On Sat Apr 29, I was peacefully napping until Johan Bockgård said:

> Mike Ballard <dont_w@nt_spam.org> writes:
> 
> > Is it easy to figure out each mode's 'top-line' thing based on the
> > mode name?
> 
> Yes. It's "foo-mode" without the "-mode".
> 
> See (info "(emacs)Choosing Modes")
> 

Thank you very much.

Mike
-- 

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

end of thread, other threads:[~2006-04-30  0:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-29  0:17 what is this called? Mike Ballard
2006-04-29  0:29 ` Johan Bockgård
2006-04-30  0:02   ` Mike Ballard

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.