 (add-hook 'sgml-mode-hook 'emmet-mode)
 (add-hook 'sgml-mode-hook 'rainbow-delimiters-mode)
 (add-hook 'js-mode-hook 'rainbow-delimiters-mode)
-(add-hook 'css-mode-hook 'emmet-mode)
-(add-hook 'css-mode-hook 'rainbow-mode)
-(add-hook 'css-mode-hook 'rainbow-delimiters-mode)
-(add-hook 'css-mode-hook '(lambda () (interactive) (column-marker-1 80)))
+(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
 (add-hook 'org-mode-hook 'org-cd)
-(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))
+(add-hook 'web-mode-hook '(lambda () (interactive) (column-marker-1 80)))
 (add-hook 'web-mode-hook  'my-web-mode-hook)
 (add-hook 'web-mode-hook  'rainbow-delimiters-mode)
 (add-hook 'web-mode-hook  'emmet-mode)
+(add-hook 'web-mode-hook  'highlight-numbers-mode)
 (add-hook 'magit-status-mode-hook 'magit-keys)
 (add-hook 'magit-log-mode-hook 'magit-keys)
 (add-hook 'magit-diff-mode-hook 'magit-keys)

  (forward-line -1)
  (indent-according-to-mode))
(defun my-web-mode-hook ()
  (setq web-mode-markup-indent-offset 2)
  (setq web-mode-css-indent-offset 2)
  (setq web-mode-code-indent-offset 2)
  (setq web-mode-indent-style 4)
  (global-set-key (kbd "C-c C-c") 'web-mode-fold-or-unfold))
(defun org-cd ()
  "Changes the working directory"
  (cd "~/.emacs.d/org-files"))
(defun desktop-cd ()
  "Changes the working directory"
  (cd "~/Desktop"))
(defun my-org-archive-done-tasks ()
  "Move all done tasks in the current buffer to archive file"
  (interactive)
  (org-map-entries 'org-archive-subtree "/DONE" 'file))
(defun evilAndJdee ()
  (evil-ex-define-cmd "jc[ompile]" 'jdee-compile)
  (evil-ex-define-cmd "jr[un]" 'jdee-run))
(defun magit-keys()
  "Change emacs evil mode n and p to j and k repectively"
  (define-key evil-emacs-state-map (kbd "j") 'next-line)
  (define-key evil-emacs-state-map (kbd "k") 'previous-line))

;;Put backup files neatly away-- SAVED Me many times
(let ((backup-dir "~/Desktop/code/emacs/backups")
      (auto-saves-dir "~/Desktop/code/emacs/autosavedir"))
  (dolist (dir (list backup-dir auto-saves-dir))
    (when (not (file-directory-p dir))
      (make-directory dir t)))
  (setq backup-directory-alist `(("." . ,backup-dir))
	auto-save-file-name-transforms `((".*" ,auto-saves-dir t))
	auto-save-list-file-prefix (concat auto-saves-dir ".saves-")
	tramp-backup-directory-alist `((".*" . ,backup-dir))
	tramp-auto-save-directory auto-saves-dir))
(setq backup-by-copying t    ; Don't delink hardlinks
      delete-old-versions t  ; Clean up the backups
      version-control t      ; Use version numbers on backups,

(package-initialize)
(setq gc-cons-threshold 20000000)
(setq initial-scratch-message nil)
(fset 'yes-or-no-p 'y-or-n-p); Change yes/no to y/n
(prefer-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-language-environment 'utf-8)
(set-fill-column 80)
(blink-cursor-mode 0)
(put 'upcase-region 'disabled nil)

(add-hook 'after-init-hook 'global-company-mode);Reccomended to be on the Top
(setq browse-url-browser-function 'browse-url-default-windows-browser)
(setq default-directory "~/Desktop/" )
(setq-default frame-title-format '("%f")) ;;Set file name as the frame title
(add-to-list 'default-frame-alist '(width  . 150))
(add-to-list 'default-frame-alist '(height . 45))
;;(setq initial-frame-alist '((left . 570) (top . 135)))
(scroll-bar-mode -1)

;;-------------------------------------Server------------------
(require 'server)
