2022-06-01 15:18:06 +02:00
|
|
|
;;; lang-js.el --- Configuración para el lenguaje Javascript -*- lexical-binding: t -*-
|
2022-03-30 01:21:13 +02:00
|
|
|
|
|
|
|
;; Author: kj <webmaster@outcontrol.net>
|
|
|
|
;; URL: https://git.kj2.me/kj/confi-emacs-actual
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
2023-04-14 18:39:19 +02:00
|
|
|
;; Archivo de configuración para el lenguaje Javascript
|
|
|
|
|
2022-03-30 01:21:13 +02:00
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
(use-package js
|
|
|
|
:defer t
|
2024-04-04 00:40:00 +02:00
|
|
|
:ensure nil
|
2022-03-30 01:21:13 +02:00
|
|
|
:mode
|
|
|
|
("\\.js$" . js-mode)
|
2022-11-19 18:59:47 +01:00
|
|
|
:hook
|
|
|
|
(js-mode . eglot-ensure)
|
2022-03-30 01:21:13 +02:00
|
|
|
:config
|
|
|
|
(setq js-indent-level 2))
|
|
|
|
|
|
|
|
;; json-mode
|
|
|
|
(use-package json-mode
|
|
|
|
:defer t
|
|
|
|
:ensure t
|
|
|
|
:mode
|
|
|
|
("\\.json$" . json-mode)
|
|
|
|
:config
|
|
|
|
(setq js-indent-level 2))
|
|
|
|
|
|
|
|
|
|
|
|
(provide 'lang-js)
|
|
|
|
;;; lang-js.el ends here
|