diff --git a/conf/dotemacs b/conf/dotemacs index c6bf14f..964e944 100644 --- a/conf/dotemacs +++ b/conf/dotemacs @@ -42,8 +42,9 @@ ;; If there is more than one, they won't work right. '(c-plugin nil) ;'(color-theme-selection "Arjen" nil (color-theme_seldefcustom)) - '(developer-email "lxsameer@gnu.org") - '(developer-name "Sameer Rahmani") + '(developer-email "--EMAIL--") + '(developer-name "--FULLNAME--") + '(kuso-workspace "--WORKSPACE--") '(face-font-family-alternatives (quote (("courier" "Monospace" "fixed") ("courier" "CMU Typewriter Text" "fixed") ("Sans Serif" "helv" "helvetica" "arial" "fixed") ("helv" "helvetica" "arial" "fixed")))) '(inhibit-startup-screen t) '(rng-nxml-auto-validate-flag nil)) @@ -63,7 +64,7 @@ (local-file (file-relative-name temp-file (file-name-directory buffer-file-name)))) - (list "~/bin/pyemacs.sh" (list local-file)))) + (list "--ADDR--/pyemacs.sh" (list local-file)))) (add-to-list 'flymake-allowed-file-name-masks '("\\.py$" flymake-pyflakes-init))) ;; flymake shortkeys @@ -81,5 +82,5 @@ )) (global-set-key (kbd "") 'dabbrev-expand) -(load-file "~/src/kuso-ide/src/kuso-ide.el") +(load-file "--KUSOHOME--/kuso-ide.el") (kuso-mode) diff --git a/install.sh b/install.sh index 969ab12..5ee1351 100644 --- a/install.sh +++ b/install.sh @@ -1,16 +1,22 @@ #! /bin/bash +echo "Enter your full name (you can change it later in top level customization): " +fullname=`read` +echo "Enter your mail: " +mail=`read` +echo "Where is your workspace directory: " +workspace=`read` +echo "Where do you want to put pyemacs.sh file: " +addr=`read` +kusohome=`pwd` mkdir -p ~/.emacs.d if [ -x ~/.emacs ]; then cp ~/.emacs ~/.emacs.backup fi cp conf/emacs.d/* ~/.emacs.d -rv -cp conf/dotemacs ~/.emacs -v - -echo "Enter your full name (you can change it later in top level customization): " -$fullname=`read` -echo "Enter your mail: " -$mail=`read` -echo "Enter your workspace directory path: " -$workspace=`read` \ No newline at end of file +echo "Creating ~/.emacs" +mkdir -p $addr +cp conf/bin/pyemacs.sh $addr/ -rv +chmod u+x $addr/pyemacs.sh +sed "s/--EMAIL--/$mail/" conf/dotemacs| sed "s/--FULLNAME--/$fullname/"| sed "--WORKSPACE--" | sed "s/--ADDR--/$addrcp/" | sed "s/--KUSOHOME--/$kusohome/" > ~/.emacs