Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (add-to-list 'load-path "~/.emacs.d/auto-complete-1.3.1")
- ;Load the default configuration
- (require 'auto-complete-config)
- ;Make sure we can find the dictionaries
- (add-to-list 'ac-dictionary-directories "~/.emacs.d/auto-complete-1.3.1/dict")
- ;Use dictionaries by default
- (setq-default ac-sources (add-to-list 'ac-sources 'ac-source-dictionary))
- (global-auto-complete-mode t)
- ;Start auto completion after two characters of a word
- (setq ac-auto-start 2)
- ; case sensitivity is important when finding matches
- (setq ac-ignore-case nil)
- (add-hook 'js-mode-hook'
- (lambda ()
- ;;Scan the file for nested code blocks
- (imenu-add-menubar-index)
- ;;Activate folding mode
- (hs-minor-mode t)
- )
- )
- ;;Yasnipped: Auto-codesnippet manager
- (add-to-list 'load-path "~/.emacs.d/plugins/yasnippet")
- (require 'yasnippet)
- (yas-global-mode 1)
- ;;Lintnode
- (add-to-list 'load-path "~/.emacs.d/plugins/lintnode")
- (require 'flymake-jslint)
- (add-hook 'javascript-mode-hook
- (lambda () (flymake-mode t)))
- (custom-set-variables
- ;; custom-set-variables was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- '(lintnode-autostart t))
- (custom-set-faces
- ;; custom-set-faces was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- )
- ;;Flymake-the nice minibuffer cursor linked message
- (add-to-list 'load-path "~/.emacs.d/plugins/flymake")
- (require 'flymake-cursor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement