Skip to Content.
Sympa Menu

emacspeak - [Emacspeak] Detecting emacspeak directory

Subject: Emacspeak discussion list

List archive

[Emacspeak] Detecting emacspeak directory


Chronological Thread 
  • From: Robert Melton <lists AT robertmelton.com>
  • To: Emacspeaks <emacspeak AT emacspeak.net>
  • Subject: [Emacspeak] Detecting emacspeak directory
  • Date: Tue, 9 Jan 2024 11:35:12 -0500

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?


Archive powered by MHonArc 2.6.19+.

Top of Page