Skip to content

Instantly share code, notes, and snippets.

@oogatta
Created August 15, 2013 03:47
Show Gist options
  • Save oogatta/6238121 to your computer and use it in GitHub Desktop.
Save oogatta/6238121 to your computer and use it in GitHub Desktop.
; js2-mode
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
; tern
(add-hook 'js2-mode-hook (lambda () (tern-mode t)))
(eval-after-load 'tern
'(progn
(require 'tern-auto-complete)
(tern-ac-setup)))
; auto-complete
(require 'auto-complete)
(require 'auto-complete-config)
(global-auto-complete-mode t)
(define-key ac-completing-map (kbd "M-n") 'ac-next)
(define-key ac-completing-map (kbd "M-p") 'ac-previous)
(setq ac-dwim t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment