.gitignore for Emacs Lisp
8 ignore rules for Emacs Lisp, ready to copy into your repository.
Lisp dialect for Emacs
The complete .gitignore for Emacs Lisp
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 01:34:17 UTC
# Technologies: Emacs Lisp
### Emacs Lisp ###
*.elc
# Emacs Cask dependencies
.cask/
.eask/
.eldev/
.keg/
# Distribution directory
dist/
# Emacs backup files
*~
*.~undo-tree
What these Emacs Lisp rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
Compiled
| Pattern | What it ignores |
|---|---|
*.elc |
Compiled |
Packaging
| Pattern | What it ignores |
|---|---|
.cask/ |
Emacs Cask dependencies |
.eask/ |
Packaging |
.eldev/ |
Packaging |
.keg/ |
Packaging |
Built distribution
| Pattern | What it ignores |
|---|---|
dist/ |
Distribution directory |
Backup files
| Pattern | What it ignores |
|---|---|
*~ |
Emacs backup files |
Undo-tree save-files
| Pattern | What it ignores |
|---|---|
*.~undo-tree |
Undo-tree save-files |
How to use this .gitignore for Emacs Lisp
- Copy the Emacs Lisp rules above, or download the file directly.
- Create a file named .gitignore at the root of your Git repository and paste the rules into it.
- If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
- Commit the .gitignore so everyone on the team shares the same rules.