Skip to content

Make super-save-auto-save-when-idle buffer local#35

Open
byhc2 wants to merge 1 commit intobbatsov:masterfrom
byhc2:buffer-local-idle-save
Open

Make super-save-auto-save-when-idle buffer local#35
byhc2 wants to merge 1 commit intobbatsov:masterfrom
byhc2:buffer-local-idle-save

Conversation

@byhc2
Copy link

@byhc2 byhc2 commented May 17, 2020

In some cases idle save should be shutdown. For example,
if a function such as 'gofmt-before-save or
'go-remove-unused-imports is added in before-save-hook, then
every idle-save will format the code. Some lines/characters
might be deleted if the format tool believes it were unused,
which may not be true. Make this variable buffer local will
solve this problem.

In some cases idle save should be shutdown. For example,
if a function such as 'gofmt-before-save or
'go-remove-unused-imports is added in before-save-hook, then
every idle-save will format the code. Some lines/characters
might be deleted if the format tool believes it were unused,
which may not be true. Make this variable buffer local will
solve this problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments