From b7ca34b3893ebe156196f09039582c29513549df Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 15 Jun 2015 05:06:48 -0700 Subject: [PATCH] tape-onlyify --- dotfiles/emacs.d/init.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index e67ceb31..a9c66f27 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -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)