Namespace most of my custom functions
Some checks failed
/ Test config on ${{matrix.node}} (20) (push) Has been cancelled

This commit is contained in:
Maciej 2024-07-28 14:31:54 +03:00
parent dd5387cd7e
commit c2caa56b35
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
25 changed files with 82 additions and 85 deletions

View file

@ -20,9 +20,9 @@
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
(add-to-list 'auto-mode-alist '("\\.json\\'" . js2-mode))
(defun activate-js2-mode ()
(defun icejam/activate-js2-mode ()
"JS2 mode overrides."
(set-indent 2)
(icejam/set-indent 2)
(when (not (string-match-p ".json" (buffer-file-name)))
(lsp-deferred))
@ -41,7 +41,7 @@
(add-to-list (make-local-variable 'company-backends)
'(company-capf company-yasnippet)))
(add-hook 'js2-mode-hook 'activate-js2-mode)
(add-hook 'js2-mode-hook 'icejam/activate-js2-mode)
(provide 'icejam-lang-javascript)
;;; icejam-lang-javascript.el ends here