(when (>= emacs-major-version 24)
   (require 'package)
   (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
;   (package-initialize)
)

; color-theme-modern

;; Please set your themes directory to 'custom-theme-load-path
(add-to-list 'custom-theme-load-path
             (file-name-as-directory "~/.emacs.d/replace-colortheme"))

;; load your favorite theme
;(load-theme 'aalto-dark t t)
;(enable-theme 'aalto-dark)

(load-theme 'solarized-light t t)
(enable-theme 'solarized-light )


;(require 'color-theme)
;(color-theme-initialize)
;(setq color-theme-is-global t)
;(color-theme-classic)
;(color-theme-robin-hood)
;(require 'color-theme-solarized)
;(color-theme-solarized-dark)
;(color-theme-solarized-light)

;(add-hook 'text-mode-hook 'turn-on-auto-fill)

(global-linum-mode t)

(setq TeX-auto-save t)
(setq TeX-parse-self t)


; font size
(set-face-attribute 'default nil :height 210)


;; unfill paragraph and region
(defun unfill-paragraph ()
  (interactive)
  (let ((fill-column (point-max)))
    (fill-paragraph nil)))

(defun unfill-region ()
  (interactive)
  (let ((fill-column (point-max)))
    (fill-region (region-beginning) (region-end) nil)))


(setq c-default-style "ellemtel")
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(custom-safe-themes
   '("d677ef584c6dfc0697901a44b885cc18e206f05114c8a3b7fde674fce6180879" "8aebf25556399b58091e533e455dd50a6a9cba958cc4ebb0aab175863c25b9a4" default))
 '(package-selected-packages '(solarized-theme color-theme-modern auctex)))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )




