 ;; drop gc threshold back
 (setq gc-cons-threshold 800000)
 
-(provide '.emacs)
-;;; .emacs ends here
+(provide 'init)
+;;; init ends here

    (add-hook 'after-make-frame-functions 'meain/set-emoji-font-in-frame)
  (meain/set-emoji-font))

;; Quit out of everythign with esc
(defun meain/keyboard-quit ()
  "Quit out of whatever."
  (interactive)
  (minibuffer-keyboard-quit)
  (keyboard-quit))
(global-set-key [escape]
		'meain/keyboard-quit)

;;; [Package setup] ============================================

;; Set up package & melpa
(require 'package)
(add-to-list 'package-archives
	     '("melpa" . "http://melpa.org/packages/")
	     t)
(package-initialize)

;; Set up use-package
(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))
(eval-when-compile (require 'use-package))

;; Setup quelpa
(use-package quelpa
  :ensure t
  :init (progn
	  (quelpa '(quelpa-use-package :fetcher git
				       :url "https://github.com/quelpa/quelpa-use-package.git"))
	  (require 'quelpa-use-package)))

;; Theme
(use-package modus-operandi-theme
  :ensure t

	  (diminish 'eldoc-mode)
	  (diminish 'auto-revert-mode)))

;;; [BASIC BUILTINS] ===========================================

;; Show open and closing brackets
(show-paren-mode t)
(setq show-paren-delay 0)

;; Keep files in sync with filesystem
(global-auto-revert-mode t)

;; Disable line wrapping
(setq-default truncate-lines 1)

;; Cursor blink
(blink-cursor-mode -1)

;; Follow symlinks for vc
(setq vc-follow-symlinks t)

;; auto-pair
(electric-pair-mode t)
