 ;; Enabling subword mode (ie. navigate cameCase)
 ;; From http://www.emacswiki.org/emacs/CamelCase
 (global-subword-mode t)
-
-;; Display line numbers.
-(use-package linum
-  :ensure linum)
-(global-linum-mode)
-
-;; Right-justify linum
-;; From https://github.com/echosa/emacs.d#line-numbers
-(setq linum-format (lambda
-                     (line)
-                     (propertize
-                      (format (concat "%"
-                                      (number-to-string
-                                       (length
-                                        (number-to-string
-                                         (line-number-at-pos
-                                          (point-max)))))
-                                      "d ")
-                              line)
-                      'face
-                      'linum)))
 
 (use-package git-timemachine
   :ensure git-timemachine)


;; Display column numbers.
(setq-default column-number-mode t)

(use-package molokai-theme
  :ensure molokai-theme)
(set-face-attribute 'linum nil :background "#1B1D1E")
(set-face-attribute 'fringe nil :background "#1B1D1E")
(set-cursor-color "#0087ff")

;; Highlights current line.
(require 'hl-line)

  :ensure async)
(require 'async-bytecomp)

;; Display line numbers.
(use-package linum
  :ensure linum)
(global-linum-mode)

;; Right-justify linum
;; From https://github.com/echosa/emacs.d#line-numbers
(setq linum-format (lambda (line)
                     (propertize
                      (format (concat "%"
                                      (number-to-string
                                       (length
                                        (number-to-string
                                         (line-number-at-pos
                                          (point-max)))))
                                      "d ")
                              line)
                      'face
                      'linum)))

(use-package molokai-theme
  :ensure molokai-theme)
(set-face-attribute 'linum nil :background "#1B1D1E")
(set-face-attribute 'fringe nil :background "#1B1D1E")
(set-cursor-color "#0087ff")

;; Hide UI.
(menu-bar-mode -1)
(when (fboundp 'toggle-scroll-bar)
  (toggle-scroll-bar -1))
(when (fboundp 'tool-bar-mode)
  (tool-bar-mode -1))

;; Customizing mode line.
;; Based on http://emacs-fu.blogspot.co.uk/2011/08/customizing-mode-line.html
