       'mew-send-hook))
 
 (setq mew-use-cached-passwd t)
+
+;;; Read code.
+(require 'ensime)
+(add-hook 'scala-mode-hook 'ensime-scala-mode-hook)
+
 (provide 'init-local)

(setq-default fill-column 80)
(setq fci-rule-color "light green")

;;; delete white space
(defun my-delete-leading-whitespace (start end)
  "Delete whitespace at the beginning of each line in region."
  (interactive "*r")

    (if (not (bolp)) (forward-line 1))
    (delete-whitespace-rectangle (point) end 0)))

;;; W3m, ubuntu, sudo apt-get install or upgrade w3m.
(add-to-list 'load-path "~/.emacs.d/elpa/w3m-20150426.1916")
(setq browse-url-browser-function 'w3m-browse-url)
(autoload 'w3m-browse-url "w3m" "Ask a WWW browser to show a URL." t)
;; optional keyboard short-cut
(global-set-key "\C-xm" 'browse-url-at-point)

;;; Fullscreen, reference: http://www.emacswiki.org/cgi-bin/wiki/FullScreen
(defun fullscreen ()
  (interactive)
  (set-frame-parameter nil 'fullscreen
