From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Billy N. Patton" Newsgroups: gmane.emacs.help Subject: indenting Date: Tue, 26 Oct 2004 09:53:43 -0500 Organization: Texas Instruments Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098805388 8677 80.91.229.6 (26 Oct 2004 15:43:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2004 15:43:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 26 17:43:01 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CMTTR-0000KL-00 for ; Tue, 26 Oct 2004 17:43:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMTb8-0001QN-HN for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Oct 2004 11:50:58 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!attdl1!ip.att.net!news.ti.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 53 Original-NNTP-Posting-Host: holster07.dal.design.ti.com Original-X-Trace: home.itg.ti.com 1098802424 9778 128.247.122.70 (26 Oct 2004 14:53:44 GMT) Original-X-Complaints-To: usenet@news.ti.com Original-NNTP-Posting-Date: 26 Oct 2004 14:53:44 GMT User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040623 X-Accept-Language: en-us, en Original-Xref: shelby.stanford.edu gnu.emacs.help:126072 Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21450 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21450 I'm new to emacs. Started last Monday with XEmacs and switched this monday to gnu emacs. I've been a 10+ year vim/gvim user. Here the problem: I like to line up my variables, = and values in a pretty form that makes it more pleasent to the eyes. ex: int i1 = 0; int another_one = 1; char* cp = '\0'; I do not want tab characters. done I want to be able to hit the tab key after I type int and i1. but the int indents and follows the tab. What I end up with is int i1 = 0; THis is no more readable than having everything shifted to the left. How can I stop this behavior? I like the auto indenting then I add the { } and the lines afterward. But I like to line up my code so that it is nice an neat, not a jumbled mess. Any help would be appreciated my current .emcas file ;;; XEmacs backwards compatibility file (setq user-init-file (expand-file-name "init.el" (expand-file-name ".xemacs" "~"))) (setq custom-file (expand-file-name "custom.el" (expand-file-name ".xemacs" "~"))) (load-file user-init-file) (load-file custom-file) (add-hook 'c++-mode-hook '(lambda () (setq indent-tabs-mode nil))) (setq-default indent-tabs-mode nil) ;(setq c-tab-always-indent t) (setq c-tab-always-indent nil) -- ___ _ ____ ___ __ __ / _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___ / _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \ /____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/ /___/ Texas Instruments ASIC Circuit Design Methodology Group Dallas, Texas, 214-480-4455, b-patton@ti.com