all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Heuristics for: is a major-mode a "programming language" mode?
@ 2010-09-15  9:28 Ilya Zakharevich
  2010-09-15 13:12 ` Tim X
  2010-09-15 14:43 ` Xah Lee
  0 siblings, 2 replies; 10+ messages in thread
From: Ilya Zakharevich @ 2010-09-15  9:28 UTC (permalink / raw)
  To: help-gnu-emacs

I want a certain keypress act as forward-sexp in "programming
language" modes, and as forward-sentence (sp?) in other modes
(likewise for go-to-function-begin (sp?) and forward-paragraph (sp?)).

So there must be some code which decides "which type" is the given
major mode.  I would prefer the bulk of the decision to be made
programmatically, THEN let the user override if the auto-choice was
wrong.  Anyone with ideas how to do this?

Thanks,
Ilya

P.S.  In addition to sexp/sentence and function/paragraph, are there
      other "merges" one can do to do navigation?


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

end of thread, other threads:[~2010-09-17  9:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-15  9:28 Heuristics for: is a major-mode a "programming language" mode? Ilya Zakharevich
2010-09-15 13:12 ` Tim X
2010-09-15 14:27   ` Stefan Monnier
2010-09-15 14:43 ` Xah Lee
2010-09-15 15:08   ` Stefan Monnier
2010-09-15 15:32     ` Xah Lee
2010-09-15 23:22       ` Stefan Monnier
2010-09-16 23:43     ` Ilya Zakharevich
2010-09-17  9:50       ` Stefan Monnier
2010-09-16 23:40   ` Ilya Zakharevich

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.