Skip to content

Commit 6fae6a4

Browse files
person142milas
authored andcommitted
Update emacs ignore patterns (docker#5903)
Currently the emacs ignore patterns include `**/.#*` (lock files), but doesn't include `**/#*#` (autosave files; https://www.emacswiki.org/emacs/AutoSave, not to be confused with `**/*~` backup files which are ignored.) Add autosave files.
1 parent dd5ea04 commit 6fae6a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/watch/ephemeral.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var EphemeralPathMatcher = initEphemeralPathMatcher()
1818

1919
func initEphemeralPathMatcher() model.PathMatcher {
2020
golandPatterns := []string{"**/*___jb_old___", "**/*___jb_tmp___", "**/.idea/**"}
21-
emacsPatterns := []string{"**/.#*"}
21+
emacsPatterns := []string{"**/.#*", "**/#*#"}
2222
// if .swp is taken (presumably because multiple vims are running in that dir),
2323
// vim will go with .swo, .swn, etc, and then even .svz, .svy!
2424
// https://github.com/vim/vim/blob/ea781459b9617aa47335061fcc78403495260315/src/memline.c#L5076

0 commit comments

Comments
 (0)