Files
confi-emacs-actual/configs/lang-js.el
kj dabaf86f28 Big re-write :)
I reordered the code in a more clean an organized way. Also this improves a lot
the emacs startup time again, bucause after some updates it becomes a bit slow
with the old configuration, so i did it again in a new way.
2025-07-20 13:18:05 -03:00

32 lines
662 B
EmacsLisp

;;; lang-js.el --- Configuración para el lenguaje Javascript -*- lexical-binding: t -*-
;; Author: kj <webmaster@outcontrol.net>
;; URL: https://git.kj2.me/kj/confi-emacs-actual
;;; Commentary:
;; Archivo de configuración para el lenguaje Javascript
;;; Code:
(use-package js
:ensure nil
:mode
("\\.js$" . js-mode)
:init
(add-to-list 'auto-mode-alist '("\\.tsx\\'" . tsx-ts-mode))
(add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-ts-mode))
:config
(setq js-indent-level 2))
;; json-mode
(use-package json-mode
:mode
("\\.json$" . json-mode)
:config
(setq js-indent-level 2))
(provide 'lang-js)
;;; lang-js.el ends here