Re: Indentation
Robert Folland <[email protected]> 18 Apr 2002 00:12:08 +0200
| Newsgroups | gmane.lisp.ilisp.general |
|---|---|
| Message-ID | <[email protected]> |
"Clementson, Bill" <[email protected]> writes: > Put the following in your .emacs to get the indentation in your 2nd example: > > (setq lisp-indent-function 'common-lisp-indent-function) Thank you, that did it. One other small point: I get these two variants, depending on whether I have one or several of the arguments/keywords on the same line as with-open-file. This is the same for defun etc. also. Probably a trivial setting in .emacs? For some functions who has a very special first argument the first version is perhaps what some people want? I think I prefer the last of these two, so I would want the arguments to line up under the first one always. (Or is there a good reason for the first of these two?) (let ((value 300)) (with-open-file (stream "testfile" :element-type '(unsigned-byte 8) :direction :output) (write-byte (ldb (byte 8 8) value) stream) (write-byte (ldb (byte 8 0) value) stream))) (let ((value 300)) (with-open-file (stream "testfile" :element-type '(unsigned-byte 8) :direction :output) (write-byte (ldb (byte 8 8) value) stream) (write-byte (ldb (byte 8 0) value) stream))) -Robert