From 1ff0fec1fe661e8d1e52d7aa1d97352472a4d777 Mon Sep 17 00:00:00 2001 From: David Kerkeslager Date: Mon, 9 Feb 2015 03:25:50 -0500 Subject: [PATCH] Adding a .emacs configuration --- .emacs | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .emacs diff --git a/.emacs b/.emacs new file mode 100644 index 0000000..319b743 --- /dev/null +++ b/.emacs @@ -0,0 +1,39 @@ +;; Make custom store its generated code in .emacs-custom.el +(setq custom-file "~/.emacs-custom.el") +(if (file-exists-p custom-file) + (load custom-file)) + +;; Load package.el and some package repos +(require 'package) +(setq package-enable-at-startup nil) +(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/") + ("melpa" . "http://melpa.org/packages") + ("org" . "http://orgmode.org/elpa/"))) +(package-initialize) + +;; Install packages that I use that aren't installed +(unless (package-installed-p 'paredit) (package-install 'paredit)) +(unless (package-installed-p 'starter-kit) (package-install 'starter-kit)) +(unless (package-installed-p 'starter-kit-bindings) (package-install 'starter-kit-bindings)) +(unless (package-installed-p 'starter-kit-eshell) (package-install 'starter-kit-eshell)) +(unless (package-installed-p 'starter-kit-lisp) (package-install 'starter-kit-lisp)) +(unless (package-installed-p 'solarized-theme) (package-install 'solarized-theme)) + +;; Require the packages I use +(require 'paredit) +(require 'starter-kit) +(require 'starter-kit-bindings) +(require 'starter-kit-eshell) +(require 'starter-kit-lisp) +(require 'solarized-theme) + +;; Set the theme +(load-theme 'solarized-dark) + +;; Make tabs not a thing by default +(setq tab-width 4 + indent-tabs-mode nil) + +;; Set reasonable C style +(setq c-default-style "linux" + c-basic-offset 4) -- 2.20.1