From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.help Subject: Re: subword-mode for underscores? Date: Thu, 14 Jul 2011 15:12:27 +0200 Message-ID: <4E1EEB3B.5020005@dogan.se> References: <20110713222928.GB27549@chocholous.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310650992 26345 80.91.229.12 (14 Jul 2011 13:43:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2011 13:43:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 14 15:43:08 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QhMC4-0006lF-2p for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2011 15:43:08 +0200 Original-Received: from localhost ([::1]:50003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhMC3-0001j3-3X for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2011 09:43:07 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhLiX-00035w-VZ for help-gnu-emacs@gnu.org; Thu, 14 Jul 2011 09:12:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QhLiW-00012e-99 for help-gnu-emacs@gnu.org; Thu, 14 Jul 2011 09:12:37 -0400 Original-Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:55022) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhLiV-00012O-QN for help-gnu-emacs@gnu.org; Thu, 14 Jul 2011 09:12:36 -0400 Original-Received: from c80-216-105-155.bredband.comhem.se ([80.216.105.155]:59959 helo=[192.168.0.10]) by ch-smtp05.sth.basefarm.net with esmtp (Exim 4.76) (envelope-from ) id 1QhLiP-0000Ha-Ih for help-gnu-emacs@gnu.org; Thu, 14 Jul 2011 15:12:31 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: <20110713222928.GB27549@chocholous.lan> X-Originating-IP: 80.216.105.155 X-Scan-Result: No virus found in message 1QhLiP-0000Ha-Ih. X-Scan-Signature: ch-smtp05.sth.basefarm.net 1QhLiP-0000Ha-Ih 6b94c2bca5857cbc756c0d816ed1fbd4 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.76.153.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81586 Archived-At: 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