prior espeak
This commit is contained in:
38
config.el
38
config.el
@@ -457,7 +457,9 @@ Funguje v libovolném textu, včetně Markdown linků (např. [x](./...))."
|
|||||||
(defconst my/emacspeak-wrapper (expand-file-name "~/.local/bin/emacspeak-mac"))
|
(defconst my/emacspeak-wrapper (expand-file-name "~/.local/bin/emacspeak-mac"))
|
||||||
|
|
||||||
;; Emacspeak uses this to start the speech server.
|
;; Emacspeak uses this to start the speech server.
|
||||||
(setq dtk-program my/emacspeak-wrapper)
|
;;(setq dtk-program my/emacspeak-wrapper)
|
||||||
|
(setq dtk-program (expand-file-name "~/.emacspeak/servers/espeak"))
|
||||||
|
|
||||||
|
|
||||||
;; State flags
|
;; State flags
|
||||||
(defvar my/emacspeak-loaded nil)
|
(defvar my/emacspeak-loaded nil)
|
||||||
@@ -528,18 +530,26 @@ Funguje v libovolném textu, včetně Markdown linků (např. [x](./...))."
|
|||||||
(setq dtk-speech-rate 300)
|
(setq dtk-speech-rate 300)
|
||||||
|
|
||||||
|
|
||||||
;; emacspeak additional settings
|
;; ----------------------------
|
||||||
;;(setq emacspeak-speak-messages nil)
|
;; Emacspeak defaults (global)
|
||||||
;;(setq emacspeak-audio-indentation nil)
|
;; ----------------------------
|
||||||
(setq emacspeak-speak-echo nil)
|
(with-eval-after-load 'dtk-speak
|
||||||
(setq emacspeak-character-echo nil)
|
;; Speech rate
|
||||||
;;(setq emacspeak-word-echo nil)
|
(setq-default dtk-speech-rate 300)
|
||||||
(setq emacspeak-line-echo t)
|
|
||||||
;;(setq emacspeak-speak-messages nil)
|
|
||||||
(global-set-key (kbd "C-c SPC") #'emacspeak-speak-buffer)
|
|
||||||
(add-hook 'transient-post-exit-hook #'ignore)
|
|
||||||
|
|
||||||
(advice-add 'transient--show :after
|
;; Default punctuation mode: none / some / all
|
||||||
(lambda (&rest _)
|
;; (Emacspeak manual: dtk-set-punctuations supports 'none 'some 'all) :contentReference[oaicite:1]{index=1}
|
||||||
(dtk-speak (buffer-string))))
|
(setq-default dtk-punctuation-mode 'none))
|
||||||
|
|
||||||
|
(with-eval-after-load 'emacspeak
|
||||||
|
;; Typing feedback:
|
||||||
|
;; nechceš znaky, chceš slova + řádky
|
||||||
|
;; (Emacspeak manual: character/word/line echo) :contentReference[oaicite:2]{index=2}
|
||||||
|
(setq-default emacspeak-character-echo nil)
|
||||||
|
(setq-default emacspeak-word-echo t)
|
||||||
|
(setq-default emacspeak-line-echo t))
|
||||||
|
|
||||||
|
(map! :leader
|
||||||
|
(:prefix ("h" . "help")
|
||||||
|
:desc "Describe bindings (buffer-local)" "B" #'describe-bindings))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user