setup, bin/aspell-hack, dot/emacs: Make `aspell' start in $HOME.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 1 Apr 2010 18:14:54 +0000 (19:14 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 1 Apr 2010 18:14:54 +0000 (19:14 +0100)
Otherwise it starts in some random directory and maybe stops me
unmounting removable media.  Bug reported to Debian.

bin/aspell-hack [new file with mode: 0755]
dot/emacs
setup

diff --git a/bin/aspell-hack b/bin/aspell-hack
new file mode 100755 (executable)
index 0000000..0283417
--- /dev/null
@@ -0,0 +1,2 @@
+#! /bin/sh
+set -e; cd; exec aspell "$@"
index 65f558f..c53cdaa 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
 (setq password-cache-expiry nil)
 (setq-default proced-filter 'all
              proced-sort 'user)
-(setq ispell-program-name "aspell"
+(setq ispell-program-name "aspell-hack"
       ispell-local-dictionary "en_GB-ize-w_accents"
       flyspell-default-dictionary "en_GB-ize-w_accents"
       ispell-silently-savep t)
diff --git a/setup b/setup
index 162ede5..abf2e24 100755 (executable)
--- a/setup
+++ b/setup
@@ -215,6 +215,7 @@ scripts="
   mdw-build
   emacsclient-hack
   movemail-hack
+  aspell-hack
   emerge-hack
   lesspipe.sh
   start-ssh-agent