[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacspeak] Detecting emacspeak directory



What is the best way to find the emacspeak directory, I currently use a combination of a bash script and some emacs lisp, but per another thread (Re: [Emacspeak] swiftmac does not say punctuation while reading lines) it might not be working in all cases. 

The bash script:

#!/bin/bash

if which emacspeak _name >/dev/null; then
  ESD=`emacspeak --batch --load get-emacspeak-path.el 2> /dev/null | tail -1 | sed 's/"//g'`
else
  ESD=`emacs --batch --load get-emacspeak-path.el 2> /dev/null | tail -1 | sed 's/"//g'`
fi

echo $ESD

----

The lisp code that is run

(ignore-errors
  (load "~/.emacs.el"))
(ignore-errors
  (load "~/.emacs"))
(ignore-errors
  (load "~/.emacs.d/init.el"))
(ignore-errors
  (load "~/.config/emacs/init.el"))
(print emacspeak-directory)

----

Better ideas? 


|Full archive May 1995 - present by Year|Search the archive|


If you have questions about this archive or had problems using it, please contact us.

Contact Info Page