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:
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
(use-package js
|
|
|
|
:defer t
|
2022-05-27 23:04:28 +02:00
|
|
|
:straight t
|
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
|
2022-05-27 23:04:28 +02:00
|
|
|
:straight t
|
2022-03-30 01:21:13 +02:00
|
|
|
:ensure t
|
|
|
|
:mode
|
|
|
|
("\\.json$" . json-mode)
|
|
|
|
:config
|
|
|
|
(setq js-indent-level 2))
|
|
|
|
|
|
|
|
|
|
|
|
(provide 'lang-js)
|
|
|
|
;;; lang-js.el ends here
|