home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

programming-js.el (536B)


      1 ;;; programming-js.el --- -*- lexical-binding: t; -*-
      2 ;;; Commentary:
      3 ;;; Javascript and Typescript programming language configuration
      4 ;;; Code:
      5 
      6 (use-package js2-mode
      7   :hook
      8   (js2-mode . js-ts-mode-hook))
      9 
     10 (use-package typescript-mode
     11   :hook
     12   (typescript-mode . typescript-ts-mode-hook))
     13 
     14 (use-package typescript-ts-mode
     15   :mode (("\\.ts\\'" . typescript-ts-mode)
     16          ("\\.tsx\\'" . tsx-ts-mode)))
     17 
     18 (use-package json-mode
     19   :hook
     20   (json-mode . json-ts-mode-hook))
     21   
     22 (provide 'programming-js)
     23 ;;; programming-js.el ends here