Re: Coding conventions

Len Trigg <[email protected]>
Newsgroups gmane.emacs.jdee.devel
Organization NetValue Ltd
Message-ID <hbr5vhefko.wl%[email protected]>
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 :-)


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


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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.