diff --git a/aider/watch.py b/aider/watch.py index c810e9ea123..45f4224fd01 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -25,7 +25,7 @@ def load_gitignores(gitignore_paths: list[Path]) -> Optional[PathSpec]: "*.bak", # Generic backup "*.swp", # Vim swap "*.swo", # Vim swap - "#*#", # Emacs auto-save + "\\#*\\#", # Emacs auto-save ".#*", # Emacs lock files "*.tmp", # Generic temp files "*.temp", # Generic temp files