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

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

Re: Insert appropriate line-end character (like ';' for C*)


From: Josh
Subject: Re: Insert appropriate line-end character (like ';' for C*)
Date: Thu, 12 Jun 2008 11:30:05 -0700 (PDT)
User-agent: G2/1.0

So the various modes don' t include that information? It seems like
they must, otherwise how would Emacs be able to indent things
appropriately? In python-mode it's aware that a line ending in ':' is
special, and so it automatically indents the following line(s),
similarly it un-indents the lines following a 'return' statement. It's
not doing this solely based on the presence of key terms such as 'if'
and 'def' either (I tested); it's aware of ':' as an important
character in python-mode at least.

All I'm trying to figure out is if there's an easy way to determine,
even if it's just for python-mode, what that special character is.


reply via email to

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