Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescherti committed Aug 17, 2024
1 parent c6de555 commit 8d150f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ The `dir-config` package allows for automatic application of specific configurat

### How does .dir-config.el files compare to .dir-locals.el?

Here is the difference between using `.dir-locals.el` (built-in) and the `.dir-config.el` (this package) files:
Here is the difference between using `.dir-locals.el` and the `.dir-config.el` files:

- `.dir-locals.el` (built-in):
- Primarily used for setting per-directory local variables.
- The syntax of `.dir-locals.el` relies heavily on nested lists and alist structures. This can quickly become **difficult to read and maintain**, especially for more complex configurations.
- The configuration in `dir-locals.el` is inherently static unless dynamic behavior is explicitly added using `eval`.

- `.dir-config.el` (The `dir-config` package):
- `.dir-config.el` (this package):
- Provides more extensive capabilities by loading and evaluating Emacs Lisp code for tasks such as environment configuration, keybindings, and other complex setup processes.
- Better suited for more complex, project-specific setups where additional customization and dynamic behavior are required.
- `.dir-config.el` files are easier to maintain, as they use standard Elisp code instead of nested alists.
Expand Down

0 comments on commit 8d150f1

Please sign in to comment.