PageRenderTime 46ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/utilities/emacspeak/lisp/emacspeak-muse.el

https://github.com/jamesnvc/emacs.d
Lisp | 96 lines | 31 code | 12 blank | 53 comment | 1 complexity | 207df436804b4937b2241dae11332634 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, LGPL-2.0, MIT, BSD-3-Clause, GPL-3.0
  1. ;;; emacspeak-muse.el --- Speech-enable Muse
  2. ;;; $Id: emacspeak-muse.el 5798 2008-08-22 17:35:01Z tv.raman.tv $
  3. ;;; $Author: tv.raman.tv $
  4. ;;; Description: Speech-enable Muse
  5. ;;; Keywords: Emacspeak, Audio Desktop Muse
  6. ;;{{{ LCD Archive entry:
  7. ;;; LCD Archive Entry:
  8. ;;; emacspeak| T. V. Raman |raman@cs.cornell.edu
  9. ;;; A speech interface to Emacs |
  10. ;;; $Date: 2007-08-25 18:28:19 -0700 (Sat, 25 Aug 2007) $ |
  11. ;;; $Revision: 4532 $ |
  12. ;;; Location undetermined
  13. ;;;
  14. ;;}}}
  15. ;;{{{ Copyright:
  16. ;;;Copyright (C) 1995 -- 2007, T. V. Raman
  17. ;;; Copyright (c) 1994, 1995 by Digital Equipment Corporation.
  18. ;;; All Rights Reserved.
  19. ;;;
  20. ;;; This file is not part of GNU Emacs, but the same permissions apply.
  21. ;;;
  22. ;;; GNU Emacs is free software; you can redistribute it and/or modify
  23. ;;; it under the terms of the GNU General Public License as published by
  24. ;;; the Free Software Foundation; either version 2, or (at your option)
  25. ;;; any later version.
  26. ;;;
  27. ;;; GNU Emacs is distributed in the hope that it will be useful,
  28. ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  29. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  30. ;;; GNU General Public License for more details.
  31. ;;;
  32. ;;; You should have received a copy of the GNU General Public License
  33. ;;; along with GNU Emacs; see the file COPYING. If not, write to
  34. ;;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  35. ;;}}}
  36. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  37. ;;{{{ introduction
  38. ;;; Commentary:
  39. ;;; Speech enable Muse
  40. ;;}}}
  41. ;;{{{ Required modules
  42. ;;; Code:
  43. (require 'emacspeak-preamble)
  44. (require 'browse-url)
  45. (require 'emacspeak-outline)
  46. ;;}}}
  47. ;;{{{ Voice definitions:
  48. (voice-setup-add-map
  49. '(
  50. (muse-bad-link-face voice-bolden-and-animate)
  51. (muse-emphasis-1 voice-lighten)
  52. (muse-emphasis-2 voice-lighten-medium)
  53. (muse-emphasis-3 voice-lighten-extra)
  54. (muse-header-1 voice-bolden)
  55. (muse-header-2 voice-bolden-medium)
  56. (muse-header-3 voice-bolden-extra)
  57. (muse-header-4 voice-bolden-extra)
  58. (muse-header-5 voice-bolden-extra)
  59. (muse-link-face voice-brighten)
  60. (muse-verbatim-face voice-monotone)
  61. ))
  62. ;;}}}
  63. ;;{{{ advice interactive commands
  64. (loop for f in
  65. '(muse-follow-name-at-point
  66. muse-follow-name-at-point-other-window
  67. muse-next-reference
  68. muse-previous-reference)
  69. do
  70. (eval
  71. `(defadvice ,f (after emacspeak pre act comp)
  72. "Provide auditory feedback."
  73. (when (interactive-p)
  74. (emacspeak-auditory-icon 'large-movement)
  75. (emacspeak-speak-line)))))
  76. ;;}}}
  77. (provide 'emacspeak-muse)
  78. ;;{{{ end of file
  79. ;;; local variables:
  80. ;;; folded-file: t
  81. ;;; byte-compile-dynamic: t
  82. ;;; end:
  83. ;;}}}