Subject: Emacspeak discussion list
List archive
- 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?
- [Emacspeak] Detecting emacspeak directory, Robert Melton, 01/09/2024
- Re: [Emacspeak] Detecting emacspeak directory, T.V Raman, 01/09/2024
- Re: [Emacspeak] Detecting emacspeak directory, Robert Melton, 01/09/2024
- Re: [Emacspeak] Detecting emacspeak directory, T.V Raman, 01/09/2024
- Re: [Emacspeak] Detecting emacspeak directory, Tim Cross, 01/09/2024
- Re: [Emacspeak] Detecting emacspeak directory, T.V Raman, 01/09/2024
- Re: [Emacspeak] Detecting emacspeak directory, Victor Tsaran, 01/09/2024
- Re: [Emacspeak] Detecting emacspeak directory, Robert Melton, 01/09/2024
- Re: [Emacspeak] Detecting emacspeak directory, Tim Cross, 01/09/2024
- Re: [Emacspeak] Detecting emacspeak directory, Robert Melton, 01/10/2024
- Re: [Emacspeak] Detecting emacspeak directory, T.V Raman, 01/10/2024
- Re: [Emacspeak] Detecting emacspeak directory, Victor Tsaran, 01/09/2024
- Re: [Emacspeak] Detecting emacspeak directory, T.V Raman, 01/09/2024
- Re: [Emacspeak] Detecting emacspeak directory, Tim Cross, 01/09/2024
- Re: [Emacspeak] Detecting emacspeak directory, T.V Raman, 01/09/2024
- Re: [Emacspeak] Detecting emacspeak directory, Robert Melton, 01/09/2024
- Re: [Emacspeak] Detecting emacspeak directory, T.V Raman, 01/09/2024
Archive powered by MHonArc 2.6.19+.