From d0d03fdaa849492f94c1c2504d389614e166b247 Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 18 Aug 2019 20:12:05 +0200 Subject: added emacs config & installer --- install | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'install') 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" @@ -125,6 +126,22 @@ function vimConfigInstaller() { return 0 } +#}}} +#{{{ 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 -- cgit v1.2.3