Replace :eval/:repl with autodef functions
+ :eval => set-eval-handler! + :repl => set-repl-handler! + Updates all internal references.
This commit is contained in:
parent
98632fe086
commit
588359cc5f
21 changed files with 98 additions and 72 deletions
|
@ -22,7 +22,7 @@
|
|||
(add-hook! 'js2-mode-hook #'(flycheck-mode rainbow-delimiters-mode))
|
||||
|
||||
(set-electric! 'js2-mode :chars '(?\} ?\) ?. ?:))
|
||||
(set! :repl 'js2-mode #'+javascript/repl)
|
||||
(set-repl-handler! 'js2-mode #'+javascript/repl)
|
||||
|
||||
;; Conform switch-case indentation to js2 normal indent
|
||||
(defvaralias 'js-switch-indent-offset 'js2-basic-offset)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue