Commit 665d676
Handle rebuild-on-save more conventionally (#159)
Don't make a single global decision about whether to do this based on
the value of psc-ide-rebuild-on-save at the time the library is loaded
Instead, add after-save-hook handlers locally to each buffer in which
psc-ide-mode is enabled, and then check psc-ide-rebuild-on-save each
time.
This way, psc-ide-rebuild-on-save can be set on a per-file or
per-directory basis, and no check for the current major mode is
necessary.
See #151 and #1521 parent 35c4e99 commit 665d676
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
174 | 177 | | |
175 | 178 | | |
176 | 179 | | |
177 | | - | |
| 180 | + | |
178 | 181 | | |
179 | 182 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
0 commit comments