Re: Coding conventions
Paul Landes <[email protected]>
| Newsgroups | gmane.emacs.jdee.devel |
|---|---|
| Message-ID | <[email protected]> |
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? Regardless, I don't think I've ever seen an emacs lisp file that doesn't go by this convention. I realize this standard is changing for other languages like Java, for which other IDEs have their own idea of what tab spaces should be. In these circumstances, I think it's best to go with spaces since that is the common denominator. However, I don't think there are going to be many people using some other editor to edit Emacs Lisp file. I shiver thinking about using Eclipse to edit Emacs Lisp files :) 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))) Len Trigg writes: > Przemys?aw Wojnowski wrote: > > Are there any coding conventions which should be used in this project? > > Should we use spaces or tabs and how lines should be indented? I've seen > > use of spaces and tabs in different lines in jde-parse.el. > > My preference would be to use spaces for indentation (I have > indent-tabs-mode set to nil, which I am assuming that lisp indentation > obeys), and do whatever emacs does as default for how to indent lines. > > Cheers, > Len. > > ------------------------------------------------------------------------------ > 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 > _______________________________________________ > jdee-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jdee-devel -- 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 _______________________________________________ jdee-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jdee-devel