Skip to content

a batteries-included Emacs major mode for Typescript, Javascript, TSX, and JSX files

License

Notifications You must be signed in to change notification settings

orzechowskid/tsx-mode.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

tsx-mode.el: a batteries-included Emacs major mode for TSX/JSX files

Features

  • code analysis and completion
  • syntax highlighting
  • indentation (including JSX/TSX)
  • code folding
  • code-coverage overlays
  • syntax highlighting, indentation, and code completion for CSS-in-JS tagged template strings

Installation

this branch of code is intended for emacs version 29 or newer. support for emacs versions 27 and 28 can be found here: https://github.com/orzechowskid/tsx-mode.el/tree/emacs28.

Dependencies

Download

download this package and place the .el files from it in a directory on your load-path.

or install this repository (and all its package dependencies) via straight.el:

(straight-use-package '(tsx-mode :type git :host github :repo "orzechowskid/tsx-mode.el"))

Require

(require 'tsx-mode)

Enable

(tsx-mode t)

Enable by default for JS/TS files

(add-to-list 'auto-mode-alist '("\\.[jt]s[x]?\\'" . tsx-mode)

Keybindings

all tsx-mode keybindings live under the C-c t prefix.

Binding Function Purpose
C-c t f origami-toggle-node toggle code-folding for current region
C-c t F origami-toggle-all-nodes toggle code-folding for all regions
C-c t c tsx-mode-coverage-toggle toggle code-coverage overlay

Configuration

Useful variables are members of the tsx-mode customization group and can be viewed and modified with the command M-x customize-group [RET] tsx-mode [RET].

License

GPLv3. see LICENSE in the top level of this repository.

About

a batteries-included Emacs major mode for Typescript, Javascript, TSX, and JSX files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published