* subword-mode for underscores?
@ 2011-07-13 22:29 Martin
2011-07-14 13:12 ` Deniz Dogan
0 siblings, 1 reply; 3+ messages in thread
From: Martin @ 2011-07-13 22:29 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
I have just learned about "subword-mode" for CamelCase and I am wondering,
if there is something simillar for underscores syntax (camel_case)?
Most ideally have both variations in one buffer at a time -- as Python
coding conventions like to have classes in CamelCase and
other_things_with_underscore?
Do you have any tips?
Regards,
martin.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: subword-mode for underscores?
2011-07-13 22:29 subword-mode for underscores? Martin
@ 2011-07-14 13:12 ` Deniz Dogan
2011-07-14 19:20 ` Martin
0 siblings, 1 reply; 3+ messages in thread
From: Deniz Dogan @ 2011-07-14 13:12 UTC (permalink / raw)
To: help-gnu-emacs
On 2011-07-14 00:29, Martin wrote:
> Hello,
>
> I have just learned about "subword-mode" for CamelCase and I am wondering,
> if there is something simillar for underscores syntax (camel_case)?
>
> Most ideally have both variations in one buffer at a time -- as Python
> coding conventions like to have classes in CamelCase and
> other_things_with_underscore?
>
> Do you have any tips?
>
Hi
In this example, I have enabled python-mode and subword-mode and it acts
just as you would expect it to.
class HelloThere:
def hello_there():
return 1
Have I misunderstood the problem?
Deniz
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: subword-mode for underscores?
2011-07-14 13:12 ` Deniz Dogan
@ 2011-07-14 19:20 ` Martin
0 siblings, 0 replies; 3+ messages in thread
From: Martin @ 2011-07-14 19:20 UTC (permalink / raw)
To: help-gnu-emacs
My mistake. I had my Emacs Python setup "under re-construction" and
obviously... err ... I did something wrong.
Sorry and thanks.
m.
On Thu, Jul 14, 2011 at 03:12:27PM +0200, Deniz Dogan wrote:
> On 2011-07-14 00:29, Martin wrote:
> >Hello,
> >
> >I have just learned about "subword-mode" for CamelCase and I am wondering,
> >if there is something simillar for underscores syntax (camel_case)?
> >
> >Most ideally have both variations in one buffer at a time -- as Python
> >coding conventions like to have classes in CamelCase and
> >other_things_with_underscore?
> >
> >Do you have any tips?
> >
>
> Hi
>
> In this example, I have enabled python-mode and subword-mode and it
> acts just as you would expect it to.
>
> class HelloThere:
> def hello_there():
> return 1
>
> Have I misunderstood the problem?
>
> Deniz
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-14 19:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-13 22:29 subword-mode for underscores? Martin
2011-07-14 13:12 ` Deniz Dogan
2011-07-14 19:20 ` Martin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).