confi-emacs-actual/configs/lang-js.el

35 lines
606 B
EmacsLisp
Raw Normal View History

;;; 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
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