summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2019-08-18 20:12:05 +0200
committerjohannst <johannes.stoelp@gmail.com>2019-08-18 20:12:05 +0200
commitd0d03fdaa849492f94c1c2504d389614e166b247 (patch)
tree6049e4d4ab5ccbb240e39cd02b73a6128ed408ad /install
parent3043d6d847630d9e295119dbb32f5e9bbac0aa1a (diff)
downloaddotfiles-d0d03fdaa849492f94c1c2504d389614e166b247.tar.gz
dotfiles-d0d03fdaa849492f94c1c2504d389614e166b247.zip
added emacs config & installer
Diffstat (limited to 'install')
-rwxr-xr-xinstall17
1 files changed, 17 insertions, 0 deletions
diff --git a/install b/install
index 2b89b5c..5d5d6f4 100755
--- a/install
+++ b/install
@@ -13,6 +13,7 @@ gToolsConfig=(
"gitconfig:git:gitConfigInstaller"
"tmux.conf:tmux:tmuxConfigInstaller"
"vimrc:vim:vimConfigInstaller"
+"emacs:emacs:emacsInstaller"
"Xresources:xterm:xtermConfigInstaller"
"i3config:i3:i3ConfigInstaller"
"i3status:i3status:i3statusConfigInstaller"
@@ -126,6 +127,22 @@ function vimConfigInstaller() {
}
#}}}
+#{{{ emacsInstaller
+
+function emacsInstaller() {
+ local emacsrc=~/.emacs
+ touch $emacsrc
+ grep $gMagicNumber $emacsrc > /dev/null 2>&1
+ if [[ $? = 0 ]]; then
+ return 1
+ fi
+ echo -e "\n;; $gMagicNumber - Auto generated, do not delete or modify!" >> $emacsrc
+ echo -e "(load \"$ABS_BASE_DIR/emacs\")" >> $emacsrc
+ echo -e "(require 'johannst)" >> $emacsrc
+ return 0
+}
+
+#}}}
#{{{ xtermConfigInstaller
function xtermConfigInstaller() {