help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Heuristics for: is a major-mode a "programming language" mode?


From: Ilya Zakharevich
Subject: Heuristics for: is a major-mode a "programming language" mode?
Date: Wed, 08 Dec 2010 15:28:37 -0000
User-agent: slrn/0.9.8.1pl1 (Linux)

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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]