Next: , Previous: , Up: Top   [Contents][Index]


9 Coding Style

SXEmacs has two main programming languages, Emacs Lisp, and C, therefore we need two sets of coding styles.

9.1 Coding Style – Emacs Lisp

Read see (lispref)Style Tips

Please take particular note of…

Don’t make a habit of putting close-parentheses on lines by themselves; Lisp programmers find this disconcerting. Once in a while, when there is a sequence of many consecutive close-parentheses, it may make sense to split them in one or two significant places.

The only other thing I have to say about lisp coding style is to keep your lines under 80 columns in length.

9.1.1 Coding Style – C

First off, I’d suggest printing out a copy of the GNU coding standards, and NOT read it. Burn them, it’s a great symbolic gesture.

– Linus Torvalds