From: "Billy N. Patton" <b-patton@ti.com>
Subject: indenting
Date: Tue, 26 Oct 2004 09:53:43 -0500 [thread overview]
Message-ID: <cllodo$9hi$1@home.itg.ti.com> (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
next reply other threads:[~2004-10-26 14:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-26 14:53 Billy N. Patton [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='cllodo$9hi$1@home.itg.ti.com' \
--to=b-patton@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.