Skip to content

Instantly share code, notes, and snippets.

@timcharper
Last active August 29, 2015 14:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timcharper/ae8c63b146034e60cf5c to your computer and use it in GitHub Desktop.
Save timcharper/ae8c63b146034e60cf5c to your computer and use it in GitHub Desktop.
Some initializers
(require 'company)
(global-company-mode t)
(global-set-key (kbd "s-;") 'company-dabbrev)
(global-set-key (kbd "s-:") 'company-complete)
(global-auto-complete-mode 0) ;; disable this!!! they fight eachother and it is annoying.
(add-to-list 'load-path "~/.emacs.d/vendor/sbt-mode")
(require 'ensime)
;; This step causes the ensime-mode to be started whenever
;; scala-mode is started for a buffer. You may have to customize this step
;; if you're not using the standard scala mode.
(add-hook 'scala-mode-hook 'ensime-scala-mode-hook)
;; disable yasnippet tab binding
(require 'yasnippet)
(define-key yas-minor-mode-map [(tab)] nil)
(define-key yas-minor-mode-map (kbd "TAB") nil)
;; tab should only indent. ensime modifies the scala-mode-map to add these.
(define-key scala-mode-map [(tab)] nil)
(define-key scala-mode-map (kbd "TAB") nil)
;; I think ensime turns this on. STAY OFF DAMMIT!!
(global-auto-complete-mode 0) ;; disable this!!! they fight eachother and it is annoying.
(defun turn-off-ac () (global-auto-complete-mode 0))
(add-hook 'scala-mode-hook 'turn-off-ac)
;; find scala-plus here: https://github.com/SpinGo/scala-plus
(load-file "~/.emacs.d/vendor/scala-plus/scala-plus.el")
(require 'scala-plus)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment