+;;; .emacs --- my personal emacs configuration file
+
+;;; Commentary:
+
+;; This is a vim user's Emacs configuration fully littered with Vim stuff.
+;; The main reason I set this up is so that I can use magic, damn that is cool.
+;; So yeah, that's it.
+
+;;; Code:
+
 ;; Set font
-(set-default-font "Monaco 16")
+(set-frame-font "Monaco 16")
 
 ;; (setq initial-scratch-message "   : meain")
 (setq initial-major-mode 'markdown-mode)
 (defun immortal-scratch ()
   "Make scratch buffer immortal."
   (if (eq (current-buffer) (get-buffer "*scratch*"))
-  (progn (bury-buffer)
-     nil)
-t))
+    (progn (bury-buffer)
+           nil)
+    t))
 (add-hook 'kill-buffer-query-functions 'immortal-scratch)
 
 

(defun toggle-maximize-buffer () "Maximize buffer"
  (interactive)
  (if (= 1 (length (window-list)))
      (jump-to-register '_)
    (progn
      (window-configuration-to-register '_)
      (delete-other-windows))))

;; Handle installing packages in emacs
(defun ensure-package-installed (&rest packages)
  "Assure every package is installed, ask for installation if it’s not.
  Return a list of installed packages or nil for every skipped package."
  (mapcar
    (lambda (package)
      (if (package-installed-p package)
        nil
        (package-install package)))
    packages))

;; make sure to have downloaded archive description.
;; Or use package-archive-contents as suggested by Nicolas Dudebout
