svelte-ts-mode Svelte Themes

Svelte Ts Mode

Svelte tree-sitter mode

An Emacs tree-sitter major mode for .svelte files.

It requires

Features

It combines the following major modes:

  • html-mode
  • css-mode
  • typescript-ts-mode

Installation

[!CAUTION] Still in early development.

  • MELPA

    Not ready yet.

  • Manually

    git clone https://github.com/leafOfTree/svelte-ts-mode --depth 1
    
    ; ~/.emacs
    (add-to-list 'load-path "/path/to/svelte-ts-mode")
    (require 'svelte-ts-mode)
    

    For Spacemacs, put them inside dotspacemacs/user-config.

    ; ~/.spacemacs
    (defun dotspacemacs/user-config ()
          
        (add-to-list 'load-path "/path/to/svelte-ts-mode")
        (require 'svelte-ts-mode)
    

Credits

Inspired by https://github.com/mickeynp/html-ts-mode

Top categories

Loading Svelte Themes