Skip to content

Commit

Permalink
Merge pull request #53 from liuyinz/fix/auto-mode
Browse files Browse the repository at this point in the history
add .d2 to auto-mode-alist
  • Loading branch information
andorsk authored Dec 9, 2024
2 parents 872a0d7 + 687bbdb commit e1fc7d6
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 e1fc7d6

Please sign in to comment.