 ;(add-to-list 'default-frame-alist '(width . 120))
 
 ;; Make linum-mode a keyboard toggle
-(global-set-key (kbd "C-M-l") 'linum-mode)
+(bind-key "C-M-l" 'linum-mode)
 (column-number-mode t)
-
 
 (require 'evil)
 (evil-mode t)
 
 (require 'evil-surround)
-(evil-surround-mode t)
+(global-evil-surround-mode 1)
 
 ;; Easily resize windows in a frame.
 ;; Acts weirdly in different windows
-(global-set-key (kbd "S-C-<left>") 'shrink-window-horizontally)
+(global-set-key (kbd "S-C-<left>")  'shrink-window-horizontally)
 (global-set-key (kbd "S-C-<right>") 'enlarge-window-horizontally)
-(global-set-key (kbd "S-C-<down>") 'shrink-window)
-(global-set-key (kbd "S-C-<up>") 'enlarge-window)
+(global-set-key (kbd "S-C-<down>")  'shrink-window)
+(global-set-key (kbd "S-C-<up>")    'enlarge-window)
 
 ;; Forcefully remove evil-mode (basically) from term states
 ;; One can use `ctl-z` to toggle evil-mode back on

(require 'package)
(when (>= emacs-major-version 24)
  (require 'package)


;; Credit to Aaron Bieber for this.
(defun ensure-package-installed (&rest packages)
  "Installs all uninstalled packages "
  (mapcar
   (lambda (package)
     (if (package-installed-p package)
         nil
       (package-install package)))
   packages))

;; Make sure to have downloaded archive description.
(or (file-exists-p package-user-dir)
