8000 add .d2 to auto-mode-alist by eki3z · Pull Request #53 · andorsk/d2-mode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add .d2 to auto-mode-alist #53

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

Merged
merged 1 commit into from
Dec 9, 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
3 changes: 3 additions & 0 deletions d2-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
"Get the column number from DECL. It is the third item."
(cddr decl))
(defun d2--decl-tags-contain (decl tag)
"Check if any of the tags in DECL matches TAG."

Check failure on line 227 in d2-mode.el

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 26.3)

Probably "matches" should be imperative "match"

Check failure on line 227 in d2-mode.el

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, 27.2)

Probably "matches" should be imperative "match"

Check failure on line 227 in d2-mode.el

View workflow job for this annotation

GitHub Actions / build (windows-latest, 26.3)

Probably "matches" should be imperative "match"
(seq-find (lambda (tag2)
(equal tag2 tag))
(d2--decl-tag decl)))
Expand Down Expand Up @@ -395,6 +395,9 @@
(setq-local comment-start-skip "#")
(setq-local indent-line-function 'd2-indent-line))

;;;###autoload
(add-to-list 'auto-mode-alist '("\\.d2\\'" . d2-mode))

(provide 'd2-mode)

;;; d2-mode.el ends here
Loading
0