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

Adds trailing whitespace to wrapped expressions #2

Open
andersk opened this issue Jun 5, 2018 · 2 comments
Open

Adds trailing whitespace to wrapped expressions #2

andersk opened this issue Jun 5, 2018 · 2 comments

Comments

@andersk
Copy link

andersk commented Jun 5, 2018

For example,

-(defun elisp-format-string-length ()⏎
+(defun elisp-format-string-length () ⏎
   "Return string length."⏎
-  (- (elisp-format-string-end-position)⏎
+  (- (elisp-format-string-end-position) ⏎
      (elisp-format-string-beg-position)))⏎

If you run elisp-format on itself and git diff, you’ll see many more examples of this.

(I’m using Emacs 26.1 on Ubuntu 18.04.)

@tonight-halfmoon
Copy link

This is a solution:

 (add-hook 'before-save-hook (lambda()
                                (elisp-format-buffer)
                                (whitespace-cleanup)) t t) 

@Yuki-Inoue
Copy link
Owner

Sorry late reply. Recently, I don't write elisp codes...

If someone can make PR, then I can verify, and accept.

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

3 participants