tape-onlyify

This commit is contained in:
Ivan Malison 2015-06-15 05:06:48 -07:00
parent 5e086fa692
commit b7ca34b389

View File

@ -1553,6 +1553,15 @@ window is active in the perspective."
;; JavaScript
;; =============================================================================
(defun tape-onlyify ()
(interactive)
(save-excursion
(move-end-of-line nil)
(re-search-backward "^test")
(forward-sexp)
(if (looking-at ".only") (progn (zap-to-char 1 (string-to-char "(")) (insert "("))
(insert ".only"))))
(use-package js2-mode
:ensure t
:commands (js2-mode)