 (defun modi/turn-on-linum ()
   "Turn on linum mode in specific modes."
   (interactive)
-  (dolist (hook '(verilog-mode-hook
-                  emacs-lisp-mode-hook
-                  cperl-mode-hook
-                  c-mode-hook
-                  python-mode-hook
-                  matlab-mode-hook
-                  sh-mode-hook
-                  web-mode-hook
-                  html-mode-hook
-                  css-mode-hook
-                  makefile-gmake-mode-hook))
+  (dolist (hook modi/linum-mode-hooks)
     (add-hook hook #'linum-mode)))
 
 (defun modi/turn-off-linum ()
   "Unhook linum mode from various major modes."
   (interactive)
-  (dolist (hook '(verilog-mode-hook
-                  emacs-lisp-mode-hook
-                  cperl-mode-hook
-                  c-mode-hook
-                  python-mode-hook
-                  matlab-mode-hook
-                  sh-mode-hook
-                  web-mode-hook
-                  html-mode-hook
-                  css-mode-hook
-                  makefile-gmake-mode-hook))
+  (dolist (hook modi/linum-mode-hooks)
     (remove-hook hook #'linum-mode)))
 
 (defun modi/turn-on-nlinum ()
   "Turn on nlinum mode in specific modes."
   (interactive)
-  (dolist (hook '(verilog-mode-hook
-                  emacs-lisp-mode-hook
-                  cperl-mode-hook
-                  c-mode-hook
-                  python-mode-hook
-                  matlab-mode-hook
-                  sh-mode-hook
-                  web-mode-hook
-                  html-mode-hook
-                  css-mode-hook
-                  makefile-gmake-mode-hook))
+  (dolist (hook modi/linum-mode-hooks)
     (add-hook hook #'nlinum-mode)))
 
 (defun modi/turn-off-nlinum ()
   "Unhook nlinum mode from various major modes."
   (interactive)
-  (dolist (hook '(verilog-mode-hook
-                  emacs-lisp-mode-hook
-                  cperl-mode-hook
-                  c-mode-hook
-                  python-mode-hook
-                  matlab-mode-hook
-                  sh-mode-hook
-                  web-mode-hook
-                  html-mode-hook
-                  css-mode-hook
-                  makefile-gmake-mode-hook))
+  (dolist (hook modi/linum-mode-hooks)
     (remove-hook hook #'nlinum-mode)))
 
 (defun modi/set-linum (linum-pkg)

;; Time-stamp: <2015-02-10 12:42:28 kmodi>

;; Line number packages

(defvar modi/linum-fn-default 'nlinum
  "Default value of linum mode, used when toggling linum on and off.

(global-nlinum-mode -1) ; Disable nlinum-mode globally
(setq nlinum-format "%4d ") ; right aligned, 4 char wide line num col

;; linum relative
(require 'linum-relative)
(setq linum-relative-current-symbol "")
;; The symbol you want to show on the current line, by default it is 0.
;; You can use any string like \"->\". If this variable is empty string,
