Last active
August 29, 2015 14:12
-
-
Save timcharper/ae8c63b146034e60cf5c to your computer and use it in GitHub Desktop.
Some initializers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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