Browse Source

Initial commit

Bob Mottram 5 years ago
parent
commit
e46273d5a9
6 changed files with 3717 additions and 3 deletions
  1. 31 3
      README.md
  2. 74 0
      emacs
  3. 136 0
      emacs-setup.sh
  4. 3473 0
      emacs.d/init.org
  5. 3 0
      emacs.personal
  6. 0 0
      personal/.gitignore

+ 31 - 3
README.md

@@ -1,4 +1,32 @@
-emacs
-=====
+This emacs configuration is based upon the one made by Sacha Chua (https://github.com/sachac/.emacs.d)
 
-My emacs configuration
+Install dependencies:
+
+On Debian based systems:
+
+```bash
+sudo apt-get install emacs24 build-essential texinfo git graphviz
+```
+
+On Fedora:
+
+```bash
+sudo yum groupinstall "Development Tools"
+sudo yum groupinstall "C Development Tools and Libraries"
+sudo yum install emacs texinfo git graphviz
+```
+
+Now install the configuration.
+
+```bash
+git clone https://github.com/bashrc/emacs
+cd emacs
+cp emacs ~/.emacs
+cp -r emacs.d ~/.emacs.d
+cp emacs-setup.sh ~/
+mkdir ~/personal
+chmod +x ~/.emacs
+rm -rf ~/elisp
+cd ~/
+./emacs-setup.sh
+```

+ 74 - 0
emacs

@@ -0,0 +1,74 @@
+(require 'package)
+(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
+
+;; This sets up the load path so that we can override it
+(package-initialize nil)
+;; Override the packages with the git version of Org and other packages
+(add-to-list 'load-path "~/elisp/org-mode/lisp")
+(add-to-list 'load-path "~/elisp/org-mode/org")
+(add-to-list 'load-path "~/elisp/org-mode/org/lisp")
+(add-to-list 'load-path "~/elisp/org-mode/org/contrib/lisp")
+(add-to-list 'load-path "~/elisp/org-mode/helm")
+(add-to-list 'load-path "~/elisp/use-package")
+(add-to-list 'load-path "~/elisp/diminish")
+(add-to-list 'load-path "~/elisp/miniedit")
+(add-to-list 'load-path "~/elisp/color-theme")
+(add-to-list 'load-path "~/elisp/color-theme-solarized")
+(add-to-list 'load-path "~/elisp/browse-kill-ring")
+(add-to-list 'load-path "~/elisp/org2blog")
+(add-to-list 'load-path "~/elisp/xml-rpc")
+(add-to-list 'load-path "~/elisp/metaweblog")
+(add-to-list 'load-path "~/elisp/ox-html")
+(add-to-list 'load-path "~/elisp/expand-region")
+(add-to-list 'load-path "~/elisp/magit")
+(add-to-list 'load-path "~/elisp/git-modes")
+(add-to-list 'load-path "~/elisp/robe")
+(add-to-list 'load-path "~/elisp/inf-ruby")
+(add-to-list 'load-path "~/elisp/ess/ess-13.09-1")
+(add-to-list 'load-path "~/elisp/ess/ess-13.09-1/lisp")
+(add-to-list 'load-path "~/elisp/smartparens")
+(add-to-list 'load-path "~/elisp/dash")
+;; Load the rest of the packages
+(package-initialize t)
+(setq package-enable-at-startup nil)
+(require 'miniedit)
+(define-package "miniedit" "20100419.1045" "Enhanced editing for minibuffer fields." (quote nil))
+(require 'org)
+(require 'ob-tangle)
+(require 'helm-config)
+(require 'diminish)
+(require 'color-theme)
+(define-package "color-theme" "20100419.1045" "Color themes" (quote nil))
+(require 'color-theme-solarized)
+(define-package "color-theme-solarized" "20100419.1045" "Color theme solarized" (quote nil))
+(require 'browse-kill-ring)
+(define-package "browse-kill-ring" "20100419.1045" "Browse kill ring" (quote nil))
+(require 'org2blog)
+(define-package "org2blog" "20100419.1045" "Org2blog" (quote nil))
+(require 'xml-rpc)
+(define-package "xml-rpc" "20100419.1045" "xml-rpc" (quote nil))
+(require 'metaweblog)
+(define-package "metaweblog" "20100419.1045" "metaweblog" (quote nil))
+(require 'ox-html)
+(define-package "ox-html" "20100419.1045" "ox-html" (quote nil))
+(require 'htmlize)
+(define-package "htmlize" "20100419.1045" "htmlize" (quote nil))
+(require 'expand-region)
+(define-package "expand-region" "20100419.1045" "Expand region" (quote nil))
+(require 'magit)
+(define-package "magit" "20100419.1045" "Magit" (quote nil))
+(eval-after-load 'info
+  '(progn (info-initialize)
+          (add-to-list 'Info-directory-list "~/elisp/magit")))
+(require 'robe)
+(define-package "robe" "20100419.1045" "Robe" (quote nil))
+(add-hook 'ruby-mode-hook 'robe-mode)
+(require 'inf-ruby)
+(define-package "inf-ruby" "20100419.1045" "inf-ruby" (quote nil))
+(require 'ess)
+(define-package "ess" "20100419.1045" "ess" (quote nil))
+(require 'smartparens)
+(define-package "smartparens" "20100419.1045" "smartparens" (quote nil))
+(require 'dash)
+(define-package "dash" "20100419.1045" "dash" (quote nil))
+(org-babel-load-file (expand-file-name "~/.emacs.d/init.org"))

+ 136 - 0
emacs-setup.sh

@@ -0,0 +1,136 @@
+#!/bin/bash
+sudo apt-get install emacs24
+rm -rf ~/.emacs.d/auto-save-list
+rm -rf ~/.emacs.d/backups
+rm -rf ~/.emacs.d/elpa
+rm -rf ~/.emacs.d/eshell
+rm ~/.emacs.d/*.el ~/.emacs.d/savehist
+
+if [ ! -d "~/elisp/org-mode" ]; then
+    mkdir ~/elisp/org-mode
+fi
+
+if [ ! -d "~/elisp/org-mode/helm" ]; then
+    mkdir ~/elisp/org-mode/helm
+    git clone https://github.com/emacs-helm/helm.git ~/elisp/org-mode/helm
+fi
+
+if [ ! -d "~/elisp/org-mode/use-package" ]; then
+    mkdir ~/elisp/org-mode/use-package
+    git clone https://github.com/jwiegley/use-package.git ~/elisp/org-mode/use-package
+fi
+
+if [ ! -d "~/elisp/org-mode/org" ]; then
+	mkdir ~/elisp/org-mode/org
+	git clone git://orgmode.org/org-mode.git ~/elisp/org-mode/org
+	sudo apt-get install build-essential texinfo
+	cd ~/elisp/org-mode/org
+	make
+	cd ~/
+fi
+
+if [ ! -d "~/elisp/use-package" ]; then
+	mkdir ~/elisp/use-package
+	git clone https://github.com/jwiegley/use-package ~/elisp/use-package
+fi
+
+if [ ! -d "~/elisp/diminish" ]; then
+	mkdir ~/elisp/diminish
+	cd ~/elisp/diminish
+	rm *
+	wget http://www.eskimo.com/~seldon/diminish.el
+	cd ~/
+fi
+
+if [ ! -d "~/elisp/miniedit" ]; then
+	mkdir ~/elisp/miniedit
+	git clone https://github.com/emacsmirror/miniedit ~/elisp/miniedit
+fi
+
+if [ ! -d "~/elisp/color-theme" ]; then
+	mkdir ~/elisp/color-theme
+	cd ~/elisp/color-theme
+	rm *
+	wget http://download.savannah.gnu.org/releases/color-theme/color-theme.el.gz
+	gunzip *.gz
+	cd ~/
+fi
+
+if [ ! -d "~/elisp/color-theme-solarized" ]; then
+	mkdir ~/elisp/color-theme-solarized
+	git clone https://github.com/sellout/emacs-color-theme-solarized ~/elisp/color-theme-solarized
+fi
+
+if [ ! -d "~/elisp/browse-kill-ring" ]; then
+	mkdir ~/elisp/browse-kill-ring
+	git clone https://github.com/browse-kill-ring/browse-kill-ring ~/elisp/browse-kill-ring
+fi
+
+if [ ! -d "~/elisp/org2blog" ]; then
+	mkdir ~/elisp/org2blog
+	git clone https://github.com/punchagan/org2blog ~/elisp/org2blog
+fi
+
+if [ ! -d "~/elisp/xml-rpc" ]; then
+	mkdir ~/elisp/xml-rpc
+	cd ~/elisp/xml-rpc
+	rm *
+	wget http://bzr.savannah.gnu.org/lh/emacsweblogs/download/head:/xmlrpc.el-20090801230654-j6zs1nz27v2j6d62-7/xml-rpc.el
+	cd ~/
+fi
+
+if [ ! -d "~/elisp/metaweblog" ]; then
+	mkdir ~/elisp/metaweblog
+	git clone https://github.com/punchagan/metaweblog ~/elisp/metaweblog
+fi
+
+if [ ! -d "~/elisp/expand-region" ]; then
+	mkdir ~/elisp/expand-region
+	git clone https://github.com/magnars/expand-region.el ~/elisp/expand-region
+fi
+
+if [ ! -d "~/elisp/git-modes" ]; then
+	mkdir ~/elisp/git-modes
+	git clone https://github.com/magit/git-modes ~/elisp/git-modes
+fi
+
+if [ ! -d "~/elisp/magit" ]; then
+	mkdir ~/elisp/magit
+	git clone https://github.com/magit/magit ~/elisp/magit
+	cd ~/elisp/magit
+	EFLAGS="-L ~/elisp/git-modes" make lisp docs
+	make lisp docs
+	cd ~/
+fi
+
+if [ ! -d "~/elisp/robe" ]; then
+	mkdir ~/elisp/robe
+	git clone https://github.com/dgutov/robe ~/elisp/robe
+fi
+
+if [ ! -d "~/elisp/inf-ruby" ]; then
+	mkdir ~/elisp/inf-ruby
+	git clone https://github.com/nonsequitur/inf-ruby ~/elisp/inf-ruby
+fi
+
+if [ ! -d "~/elisp/ess" ]; then
+	mkdir ~/elisp/ess
+	cd ~/elisp/ess
+	rm *
+	wget http://ess.r-project.org/downloads/ess/ess-13.09-1.tgz
+	tar -xzvf ess-13.09-1.tgz
+	cd ~/elisp/ess/ess-13.09-1
+	make
+	sudo make install
+	cd ~/
+fi
+
+if [ ! -d "~/elisp/smartparens" ]; then
+	mkdir ~/elisp/smartparens
+	git clone https://github.com/Fuco1/smartparens ~/elisp/smartparens
+fi
+
+if [ ! -d "~/elisp/dash" ]; then
+	mkdir ~/elisp/dash
+	git clone https://github.com/magnars/dash.el ~/elisp/dash
+fi

File diff suppressed because it is too large
+ 3473 - 0
emacs.d/init.org


+ 3 - 0
emacs.personal

@@ -0,0 +1,3 @@
+  (setq user-full-name "Your Name"
+        user-mail-address "Your Email Address"
+        user-nick "myircnick")

+ 0 - 0
personal/.gitignore