Advertisement
Guest User

emacs init

a guest
Jan 24th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 1.66 KB | None | 0 0
  1. (add-to-list 'load-path "~/.emacs.d/auto-complete-1.3.1")
  2. ;Load the default configuration
  3. (require 'auto-complete-config)
  4. ;Make sure we can find the dictionaries
  5. (add-to-list 'ac-dictionary-directories "~/.emacs.d/auto-complete-1.3.1/dict")
  6. ;Use dictionaries by default
  7. (setq-default ac-sources (add-to-list 'ac-sources 'ac-source-dictionary))
  8. (global-auto-complete-mode t)
  9. ;Start auto completion after two characters of a word
  10. (setq ac-auto-start 2)
  11. ; case sensitivity is important when finding matches
  12. (setq ac-ignore-case nil)
  13.  
  14. (add-hook 'js-mode-hook'
  15.       (lambda ()
  16.         ;;Scan the file for nested code blocks
  17.         (imenu-add-menubar-index)
  18.         ;;Activate folding mode
  19.         (hs-minor-mode t)
  20.         )
  21. )
  22.  
  23. ;;Yasnipped: Auto-codesnippet manager
  24. (add-to-list 'load-path "~/.emacs.d/plugins/yasnippet")
  25. (require 'yasnippet)
  26. (yas-global-mode 1)
  27.  
  28. ;;Lintnode
  29. (add-to-list 'load-path "~/.emacs.d/plugins/lintnode")
  30. (require 'flymake-jslint)
  31. (add-hook 'javascript-mode-hook
  32.       (lambda () (flymake-mode t)))
  33. (custom-set-variables
  34.   ;; custom-set-variables was added by Custom.
  35.   ;; If you edit it by hand, you could mess it up, so be careful.
  36.   ;; Your init file should contain only one such instance.
  37.   ;; If there is more than one, they won't work right.
  38.  '(lintnode-autostart t))
  39. (custom-set-faces
  40.   ;; custom-set-faces was added by Custom.
  41.   ;; If you edit it by hand, you could mess it up, so be careful.
  42.   ;; Your init file should contain only one such instance.
  43.   ;; If there is more than one, they won't work right.
  44.  )
  45.  
  46. ;;Flymake-the nice minibuffer cursor linked message
  47. (add-to-list 'load-path "~/.emacs.d/plugins/flymake")
  48. (require 'flymake-cursor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement