bbatsov / emacs-lisp-style-guide

A community-driven Emacs Lisp style guide
1.08k stars 53 forks source link

Add section on loading #23

Closed shosti closed 10 years ago

shosti commented 10 years ago

There should probably be a section on loading. Here are some rules I'm thinking of:

1) Always include a provide statement at the end of every library. 2) Always use require instead of load for library files. 3) Always include an autoload cookie for functions and global variables that are commonly accessed.

Anything else?

Malabarba commented 10 years ago

Also "don't autoload everything".

bbatsov commented 10 years ago

All valid points.