Re: Coding conventions
Paul Landes <[email protected]>
| Newsgroups | gmane.emacs.jdee.devel |
|---|---|
| Message-ID | <[email protected]> |
Len Trigg writes: > Paul Landes wrote: > > I was convinced that it was actually written in some GNU Emacs Lisp > > style guide that Emacs Lisp files use tabs with a tab set at 8, but I > > actually wasn't able to produce it. > > > > Does anyone know where this is defined, if it is defined? > > FWIW, my grepping indicates that the current jde elisp uses tabs for > indentation about 25% of the time, and space-based indentation the > remaining 75%. Doing the same greps in the top level lisp directory of > the emacs distribution reveals an eerily similar proportion :-) I do appreciate this, Len. I really don't care much either way and I think it's a religious battle much like k&r that doesn't get us anywhere. Someone has to just say it's one or the other as there are many on both sides. I'm slightly more on the tab side just because that's the default configuration for editing emacs files and using it seems to be more in vain of "go with the flow". Unless people object, let's just use tabs. I know using tabs can be a pain, I like everyone has had their fill, but the tab size is really the sticker in my mind and that will be the same on everyone's Emacs unless they have changed that as well. > > You're correct `indent-tabs-mode' does the job. If you want to keep > > spaces for everything else but elisp files, add this to ~/.emacs: > > > > (add-hook 'lisp-mode-hook > > '(lambda () (setq indent-tabs-mode nil))) > > Minor note, that is reversed -- it will set it so elisp *does* use > spaces rather than tab chars. Thanks for catching that. I agree. -- Paul Landes [email protected] ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july