From 3948d2d11f5b58d03216c4a89d1015ba501b9ca7 Mon Sep 17 00:00:00 2001 From: mgmarlow Date: Mon, 21 Aug 2023 19:19:17 -0700 Subject: [PATCH] Update comment readme --- deno-ts-mode.el | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/deno-ts-mode.el b/deno-ts-mode.el index 81695db..acde0dc 100644 --- a/deno-ts-mode.el +++ b/deno-ts-mode.el @@ -23,12 +23,34 @@ ;;; Commentary: -;; Major mode for Deno. `deno-ts-mode' is derived from -;; `typescript-ts-mode', so it depends on the TypeScript tree-sitter -;; parser and definitions. Since Deno uses the same file extension as -;; TypeScript, `deno-ts-mode' helps alleviate some of the common -;; issues that come out of swapping between Deno projects and regular -;; TS projects. +;; A major mode for Deno. +;; +;; `deno-ts-mode' is derived from `typescript-ts-mode' so it depends +;; on the same TypeScript tree-sitter parsers. Install both the TSX +;; and TypeScript parsers for full deno syntax support (see README for +;; full details). +;; +;; This package helps solve some of the problems that arise from deno +;; and TypeScript sharing the same file extension. With +;; `deno-ts-setup-auto-mode-alist', `deno-ts-mode' will check for the +;; presence of a Deno config file when a major mode is selected for a +;; ".ts" or ".tsx" file. When the config file is located, +;; `deno-ts-mode' is selected. Otherwise, `typescript-ts-mode' and +;; `tsx-ts-mode' are selected as fallbacks. This function is +;; optional, so you can determine your auto-mode bindings however you +;; wish. +;; +;; Example configuration: +;; +;; (use-package deno-ts-mode +;; :config +;; (deno-ts-setup-auto-mode-alist)) +;; +;; (use-package eglot +;; :ensure t +;; :hook ((deno-ts-mode . eglot-ensure)) +;; :config +;; (deno-ts-setup-eglot)) ;;; Code: -- 2.45.2