Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid changing the formatting on save in mode. #192

Open
arichiardi opened this issue Apr 9, 2015 · 1 comment
Open

Avoid changing the formatting on save in mode. #192

arichiardi opened this issue Apr 9, 2015 · 1 comment

Comments

@arichiardi
Copy link
Contributor

I would like to disable auto-cleaning/formatting on save when in clojure-mode, I found live-ignore-whitespace-modes as variable that can be set and will exclude some cleaning:

(defun live-cleanup-whitespace ()
    (if (not (member major-mode live-ignore-whitespace-modes))
        (let ((whitespace-style '(trailing empty)) )
            (whitespace-cleanup))))

Is it enough to add clojure-mode to that var?

@arichiardi
Copy link
Contributor Author

I have tried:
(push 'clojure-mode live-ignore-whitespace-modes)
and it worked, you can close this issue if there is nothing to add..

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

No branches or pull requests

1 participant