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

Fix indent inference where lisp-indent-offset goes wrong in lisp-modes #328

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions copilot.el
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ find indentation offset."
:type 'boolean)

(defcustom copilot-indentation-alist
(append '((latex-mode tex-indent-basic)
(append '((emacs-lisp-mode lisp-indent-offset)
(latex-mode tex-indent-basic)
(lisp-mode lisp-indent-offset)
(nxml-mode nxml-child-indent)
(python-mode python-indent py-indent-offset python-indent-offset)
(python-ts-mode python-indent py-indent-offset python-indent-offset)
Expand Down Expand Up @@ -477,10 +479,8 @@ automatically, browse to %s." user-code verification-uri))
(symbol-value s))))
indent-spec))
((functionp indent-spec) ; editorconfig 0.11.0+
(cl-some (lambda (pair)
(when (numberp (cdr pair))
(cdr pair)))
(funcall indent-spec tab-width)))))))
;; This points to a setter, which do not call
nil)))))
(progn
(when (and
(not copilot-indent-offset-warning-disable)
Expand Down
Loading