Coder Social home page Coder Social logo

orzechowskid / tsx-mode.el Goto Github PK

View Code? Open in Web Editor NEW
98.0 7.0 11.0 204 KB

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

License: GNU General Public License v3.0

Emacs Lisp 100.00%
emacs typescript tsx jsx

tsx-mode.el's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.