[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/greader cf96374 13/76: greader-espeak-executable custom
From: |
Stefan Monnier |
Subject: |
[elpa] externals/greader cf96374 13/76: greader-espeak-executable custom variable added, along of greader-espeak--find-executable function that tries to determine if espeak executable is installed. |
Date: |
Fri, 8 Feb 2019 15:26:48 -0500 (EST) |
branch: externals/greader
commit cf96374332826e19f45e874758e2bdbedc2c43c5
Author: Michelangelo Rodriguez <address@hidden>
Commit: Michelangelo Rodriguez <address@hidden>
greader-espeak-executable custom variable added, along of
greader-espeak--find-executable function that tries to determine if espeak
executable is installed.
---
greader-espeak.el | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/greader-espeak.el b/greader-espeak.el
index e9402fd..77c97c2 100644
--- a/greader-espeak.el
+++ b/greader-espeak.el
@@ -6,7 +6,7 @@ nil
"back-end of espeak for greader."
:group 'greader
)
-
+;;; customization
(defcustom
greader-espeak-language
"en"
@@ -21,6 +21,14 @@ espeak --list-languages
"Specifies the rate os speech in words per minute."
:tag "greader espeak rate"
:type 'integer)
+(defcustom
+ greader-espeak-executable-name
+(greader-espeak--find-executable)
+"Path of espeak executable.
+this variable determines authomatically if espeak is present in your PATH
environment, then if this variable is nil, it means that you must first install
espeak."
+:tag "espeak executable"
+:type 'string)
+;;; code
(defun greader-espeak-set-rate
(&optional rate)
"returns a string suitable for setting espeak rate."
@@ -34,3 +42,8 @@ espeak --list-languages
(concat "-V " greader-espeak-language)
(concat "-V " lang)))
+(defun greader-espeak--find-executable
+ ()
+ "tries to find espeak executable in PATH.
+If it's present, returns absolute path of espeak, else returns nil."
+(locate-file "espeak" exec-path))
- [elpa] externals/greader 543885b 02/76: starting of greader-backends implementation., (continued)
- [elpa] externals/greader 543885b 02/76: starting of greader-backends implementation., Stefan Monnier, 2019/02/08
- [elpa] externals/greader eca0edb 04/76: .gitignore added, Stefan Monnier, 2019/02/08
- [elpa] externals/greader dbe39c8 05/76: Initiating development, added first comments., Stefan Monnier, 2019/02/08
- [elpa] externals/greader 31b8963 03/76: espeak back-end for greader., Stefan Monnier, 2019/02/08
- [elpa] externals/greader 0a085d6 08/76: work on group greader-espeak, Stefan Monnier, 2019/02/08
- [elpa] externals/greader 733f1d4 09/76: defcustom greader-espeak-language added., Stefan Monnier, 2019/02/08
- [elpa] externals/greader 088647c 07/76: group greader-espeak added, Stefan Monnier, 2019/02/08
- [elpa] externals/greader b96cb4a 06/76: Copyright added., Stefan Monnier, 2019/02/08
- [elpa] externals/greader 2d6f70a 11/76: greader-espeak.el:, Stefan Monnier, 2019/02/08
- [elpa] externals/greader a7adeea 01/76: starting to modify greader:, Stefan Monnier, 2019/02/08
- [elpa] externals/greader cf96374 13/76: greader-espeak-executable custom variable added, along of greader-espeak--find-executable function that tries to determine if espeak executable is installed.,
Stefan Monnier <=
- [elpa] externals/greader b920c94 17/76: greader-espeak.el:, Stefan Monnier, 2019/02/08
- [elpa] externals/greader 4f0dd2a 15/76: greader-espeak.el:, Stefan Monnier, 2019/02/08
- [elpa] externals/greader 804d9a7 10/76: lexical binding enabled, Stefan Monnier, 2019/02/08
- [elpa] externals/greader d7d1510 12/76: function greader-espeak-set-language added., Stefan Monnier, 2019/02/08
- [elpa] externals/greader 076f8b7 19/76: greader-speechd.el:, Stefan Monnier, 2019/02/08
- [elpa] externals/greader 54f52c8 20/76: greader-espeak.el:, Stefan Monnier, 2019/02/08
- [elpa] externals/greader 3669ca8 24/76: function greader-speechd-set-language added., Stefan Monnier, 2019/02/08
- [elpa] externals/greader 9fbe0e9 22/76: greader-speechd.el:, Stefan Monnier, 2019/02/08
- [elpa] externals/greader 55cc804 27/76: greader-speechd.el:, Stefan Monnier, 2019/02/08
- [elpa] externals/greader 5456dc6 26/76: greader-speechd.el:, Stefan Monnier, 2019/02/08