Namespace most of my custom functions
Some checks failed
/ Test config on ${{matrix.node}} (20) (push) Has been cancelled
Some checks failed
/ Test config on ${{matrix.node}} (20) (push) Has been cancelled
This commit is contained in:
parent
dd5387cd7e
commit
c2caa56b35
25 changed files with 82 additions and 85 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue