emacs: Added speak function

This commit is contained in:
Vincent Ambo 2013-07-15 13:34:18 +02:00
parent 23806edd3e
commit 9342b6e56f

View file

@ -73,6 +73,10 @@
(dotimes (_ (- 80 col (length prefix) (length postfix))) (insert "u"))
(insert postfix)))
(defun speak (m &optional voice)
(shell-command (if 'voice (concat "say " m)
(concat "say -v " voice " " m))))
;; Reconnect rcirc
(eval-after-load 'rcirc
'(defun-rcirc-command reconnect (arg)