summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2013-06-11 15:01:22 (GMT)
committer Jaromil <jaromil@dyne.org>2013-06-11 15:01:22 (GMT)
commiteac237224577fe018f7531fcc193ca36f548af48 (patch)
tree0a3c48a1255b6cb12aee803043fbf6d246c346d5
parenta4a2f50b5b2f3766ffa1aedeb7f657775530e6e7 (diff)
startup script for gnu systems
-rw-r--r--.gitignore2
-rw-r--r--elisp/autorg.el4
-rwxr-xr-xgnu/run.sh35
3 files changed, 37 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index cfe5362..06e1fa6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,8 +4,6 @@
*.sha
*.asc
*~
-*.sh
-!autogen.sh
*.do
*.o
*.lo
diff --git a/elisp/autorg.el b/elisp/autorg.el
index 8e951ee..01862f6 100644
--- a/elisp/autorg.el
+++ b/elisp/autorg.el
@@ -48,7 +48,7 @@ org-crypt org-remember org-agenda)))
"<p class=\"xhtml-validation\"><a href=\"http://validator.w3.org/check?uri=referer\">Validate XHTML 1.0</a></p>")
;; extra export formats
-(require 'org-export-generic)
+; (require 'org-export-generic)
'(org-export-blocks (quote ((comment org-export-blocks-format-comment t)
(ditaa org-export-blocks-format-ditaa t)
(dot org-export-blocks-format-dot t)
@@ -64,7 +64,7 @@ org-crypt org-remember org-agenda)))
;; Ebib bibliografy manager
(require 'ebib)
(org-add-link-type "ebib" 'ebib)
-(require 'natbib)
+; (require 'natbib)
;; freemind export
(require 'freemind)
diff --git a/gnu/run.sh b/gnu/run.sh
new file mode 100755
index 0000000..cffeb77
--- /dev/null
+++ b/gnu/run.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+EMACS=emacs23-nox
+AUTORG="$HOME/autorg"
+TMP="/tmp/autorg"
+mkdir -p $TMP
+
+# generate the emacs initialization
+rm -f $TMP/.emacs
+cat <<EOF > $TMP/.emacs
+(setq default-directory "$HOME" )
+(setq AutOrgRes "$AUTORG/elisp")
+(add-to-list 'load-path AutOrgRes)
+(add-to-list 'load-path "$AUTORG/elisp/org-mode/lisp")
+(require 'autorg)
+EOF
+
+# honor user's configuration
+if [ -r $HOME/.emacs ]; then
+ cat $HOME/.emacs >> $TMP/.emacs
+fi
+
+
+export PATH="$PATH:$AUTORG:/usr/texbin"
+export GNUPGHOME="$HOME/.gnupg"
+# export LANG=en_US
+# export LC_CTYPE=UTF-8
+cat <<EOF > $AUTORG/.aspell.conf
+dict-dir $AUTORG/dict
+data-dir $AUTORG/dict
+#add-extra-dicts en
+#add-extra-dicts grc
+home-dir $HOME
+EOF
+HOME=$TMP $EMACS $@