Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ignoring more and fixing JS indentation (sorta).

  • Loading branch information...
commit 48c9adebcd7953514cbdf6887813bc04eb679945 1 parent eb9eeb5
@technomancy technomancy authored
Showing with 8 additions and 3 deletions.
  1. +3 −1 .gitignore
  2. +5 −2 starter-kit-js.el
View
4 .gitignore
@@ -1,2 +1,4 @@
loaddefs.el*
-backups/*
+backups/*
+*elc
+places
View
7 starter-kit-js.el
@@ -17,11 +17,14 @@
'(("\\<\\(FIX\\|TODO\\|FIXME\\|HACK\\|REFACTOR\\):"
1 font-lock-warning-face t)))
- (defun js-lambda () (interactive) (insert "function () {\n};")
- (backward-char 6))
+ (defun js-lambda () (interactive) (insert "function () {\n}")
+ (backward-char 5))
(define-key js2-mode-map (kbd "C-c l") 'js-lambda)
(define-key js2-mode-map "\C-\M-h" 'backward-kill-word)
+ (define-key js2-mode-map (kbd "TAB") (lambda () (interactive)
+ (indent-for-tab-command)
+ (back-to-indentation)))
(add-hook 'js2-mode-hook 'coding-hook)
(setq js2-bounce-indent-flag nil
Please sign in to comment.
Something went wrong with that request. Please try again.