justinbarclay / parinfer-rust-mode

Simplifying how you write Lisp
https://shaunlebron.github.io/parinfer/
GNU General Public License v3.0
227 stars 16 forks source link

Implement #6 #13

Closed andreyorst closed 4 years ago

andreyorst commented 4 years ago

Please review.

I've added dimming of parens for smart and indent modes. In paren mode and when parinfer is disabled the dimming also is being disabled. This can be controlled via custom variable parinfer-rust-dim-parens, which is by default set to t. And dimmed face is being controlled via parinfer-rust-dim-parens-face

I've also applied Emacs' indenting rules to the file, hope it's OK.

andreyorst commented 4 years ago

Oops, I think I messed the enable/disable logic in parinfer-rust--dim-parens, I'll look into it tomorrow.

andreyorst commented 4 years ago

I've pushed fix for the logic.

justinbarclay commented 4 years ago

Thanks you, this looks nice :)

No qualms on follow elisp indent protocol, I think I mostly try to do it, I just don't have the indent buffer command you do :)