Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

messed up setq forms in Emacs Lisp #72

Open
corpix opened this issue May 5, 2020 · 4 comments
Open

messed up setq forms in Emacs Lisp #72

corpix opened this issue May 5, 2020 · 4 comments

Comments

@corpix
Copy link

corpix commented May 5, 2020

Hello. I have tried parinfer configuration from readme and got my Emacs configuration broken 💢 . Here is an example:

-    :ensure t
-    :config
-    (add-hook 'lsp-mode-hook 'lsp-ui-mode)
-    (setq lsp-ui-doc-enable nil
-         lsp-ui-peek-enable nil
-         lsp-ui-sideline-enable nil
-         lsp-ui-imenu-enable nil
-         lsp-ui-flycheck-enable t))
+              :ensure t
+              :config
+              (add-hook 'lsp-mode-hook 'lsp-ui-mode)
+              (setq lsp-ui-doc-enable nil)
+              lsp-ui-peek-enable nil
+              lsp-ui-sideline-enable nil
+              lsp-ui-imenu-enable nil
+              lsp-ui-flycheck-enable t)
-    (setq org-caldav-calendars
-         '((:calendar-id "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx"
-                         :files ("~/org/calendar/personal.org")
-                         :inbox "~/org/calendar/personal-inbox.org")))
+              (setq org-caldav-calendars)
+              '((:calendar-id "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx"
+                              :files ("~/org/calendar/personal.org")
+                              :inbox "~/org/calendar/personal-inbox.org"))

To summarize: (setq foo bar baz qux ...) become (setq foo bar) baz qux ...

@corpix
Copy link
Author

corpix commented May 5, 2020

Also my racket code was hit by this bug, here is screenshot with a test-suite snippet of my project's test
image

@DogLooksGood
Copy link
Owner

Do you use tab character in indentation?

@corpix
Copy link
Author

corpix commented May 7, 2020

Yes, for Emacs Lisp. I think this is default

@DogLooksGood
Copy link
Owner

That's a limitation for parinfer-mode, it can't process indentation with tabs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants