Skip to content

Commit

Permalink
add .d2 to auto-mode-alist
Browse files Browse the repository at this point in the history
  • Loading branch information
eki3z committed Nov 28, 2024
1 parent 872a0d7 commit 687bbdb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions d2-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ Optional argument BROWSE whether to open the browser."
(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

0 comments on commit 687bbdb

Please sign in to comment.