Skip to content

Instantly share code, notes, and snippets.

@joubertnel
Created November 14, 2011 23:32
Show Gist options
  • Save joubertnel/1365582 to your computer and use it in GitHub Desktop.
Save joubertnel/1365582 to your computer and use it in GitHub Desktop.
;;; This was installed by package-install.el.
;;; This provides support for the package system and
;;; interfacing with ELPA, the package archive.
;;; Move this code earlier if you want to reference
;;; packages in your .emacs.
(when
(load
(expand-file-name "~/.emacs.d/elpa/package.el"))
(package-initialize))
;;; Scala support
(add-to-list 'load-path "~/.emacs.d/site-lisp/scala-emacs")
(require 'scala-mode-auto)
(add-hook 'scala-mode-hook '(lambda ()
(scala-mode-feature-electric-mode)))
;;; Ensime
(require 'scala-mode)
(add-to-list 'auto-mode-alist '("\\.scala$" . scala-mode))
(add-to-list 'load-path "~/.emacs.d/site-lisp/ensime/src/main/elisp/")
(require 'ensime)
(add-hook 'scala-mode-hook 'ensime-scala-mode-hook)
;;; Scala REPL and SBT shell
(push "~/bin/" exec-path)
;; Color Theme support
(add-to-list 'load-path "~/.emacs.d/color-theme")
(require 'color-theme)
(color-theme-initialize)
(color-theme-clarity)
;; JavaScript support
(autoload 'javascript-mode "javascript" nil t)
(add-to-list 'auto-mode-alist '("\\.js$" . javascript-mode))
(setq js-indent-level 2)
;; Editing SproutCore apps
(add-to-list 'load-path "~/.emacs.d/sinasi")
(require 'sinasi)
(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.
'(indent-tabs-mode nil)
'(standard-indent 2))
(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.
)
;; Other editing settings
(setq-default truncate-lines t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment