From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rodrigo Canellas Newsgroups: gmane.emacs.help Subject: cc-mode configuration issues Date: Mon, 14 Jul 2008 11:04:41 -0300 Message-ID: <487B5CF9.9030300@tqtvd.com> 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: ger.gmane.org 1216088723 10273 80.91.229.12 (15 Jul 2008 02:25:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jul 2008 02:25:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 15 04:26:11 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KIaEx-0006EI-Hj for geh-help-gnu-emacs@m.gmane.org; Tue, 15 Jul 2008 04:26:07 +0200 Original-Received: from localhost ([127.0.0.1]:40784 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIaE5-0002Oj-Cf for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 22:25:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KIOhk-0002SE-8a for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 10:07:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KIOhi-0002Rx-4s for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 10:07:03 -0400 Original-Received: from [199.232.76.173] (port=42169 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIOhh-0002Rq-VL for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 10:07:02 -0400 Original-Received: from mail.quality.com.br ([200.179.60.40]:37968) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KIOhh-0004OW-3a for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 10:07:01 -0400 Received-SPF: none (tqtvd.com: No applicable sender policy available) receiver=mail.quality.com.br; identity=mfrom; envelope-from="rodrigo.canellas@tqtvd.com"; helo="[10.0.8.207]"; client-ip=10.0.8.207 Original-Received: from [10.0.8.207] (unknown [10.0.8.207]) by mail.quality.com.br (Postfix) with ESMTP id 80CB71581AF for ; Mon, 14 Jul 2008 10:45:30 -0300 (BRT) User-Agent: Thunderbird 2.0.0.14 (X11/20080505) X-Quality-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 80CB71581AF.D6FCF X-Quality-MailScanner: Found to be clean X-Quality-MailScanner-From: rodrigo.canellas@tqtvd.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 14 Jul 2008 22:24:53 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55582 Archived-At: Hi, I read the CC Mode manual, but I still do not know how to do a couple of things: 1 - How to automatically insert a new line when C/C++ code is coming to, for example, column 78. I was able to do this with comment lines, inserting " '(c-max-one-liner-length 77)" in my '.emacs', but it does not work for code. 2 - I would like to insert a single space after certain characters, such as '+', '-', '&', '=', etc. I think I can do this with a hook lisp function, but I do not know how. Could anyone help me? Thanks a lot! -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.