unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* indenting
@ 2004-10-26 14:53 Billy N. Patton
  2004-10-26 17:14 ` indenting Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Billy N. Patton @ 2004-10-26 14:53 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-10-26 20:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-26 14:53 indenting Billy N. Patton
2004-10-26 17:14 ` indenting Stefan Monnier
2004-10-26 18:04   ` indenting Billy N. Patton
2004-10-26 20:35     ` indenting Stefan Monnier

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).