diff options
Diffstat (limited to 'install')
-rwxr-xr-x | install | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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() { |