spook.el 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ;;; spook.el --- spook phrase utility for overloading the NSA line eater
  2. ;; Copyright (C) 1988, 1993, 2001-2012 Free Software Foundation, Inc.
  3. ;; Maintainer: FSF
  4. ;; Keywords: games
  5. ;; Created: May 1987
  6. ;; This file is part of GNU Emacs.
  7. ;; GNU Emacs is free software: you can redistribute it and/or modify
  8. ;; it under the terms of the GNU General Public License as published by
  9. ;; the Free Software Foundation, either version 3 of the License, or
  10. ;; (at your option) any later version.
  11. ;; GNU Emacs is distributed in the hope that it will be useful,
  12. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;; GNU General Public License for more details.
  15. ;; You should have received a copy of the GNU General Public License
  16. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  17. ;;; Commentary:
  18. ;; Steve Strassmann <straz@media-lab.media.mit.edu> didn't write
  19. ;; this, and even if he did, he really didn't mean for you to use it
  20. ;; in an anarchistic way.
  21. ;;
  22. ;; To use this:
  23. ;; Just before sending mail, do M-x spook.
  24. ;; A number of phrases will be inserted into your buffer, to help
  25. ;; give your message that extra bit of attractiveness for automated
  26. ;; keyword scanners. Help defeat the NSA trunk trawler!
  27. ;;; Code:
  28. (require 'cookie1)
  29. ; Variables
  30. (defgroup spook nil
  31. "Spook phrase utility for overloading the NSA line eater."
  32. :prefix "spook-"
  33. :group 'games)
  34. (defcustom spook-phrases-file (expand-file-name "spook.lines" data-directory)
  35. "Keep your favorite phrases here."
  36. :type 'file
  37. :group 'spook)
  38. (defcustom spook-phrase-default-count 15
  39. "Default number of phrases to insert."
  40. :type 'integer
  41. :group 'spook)
  42. ;;;###autoload
  43. (defun spook ()
  44. "Adds that special touch of class to your outgoing mail."
  45. (interactive)
  46. (cookie-insert spook-phrases-file
  47. spook-phrase-default-count
  48. "Checking authorization..."
  49. "Checking authorization...Approved"))
  50. ;;;###autoload
  51. (defun snarf-spooks ()
  52. "Return a vector containing the lines from `spook-phrases-file'."
  53. (cookie-snarf spook-phrases-file
  54. "Checking authorization..."
  55. "Checking authorization...Approved"))
  56. ;; Note: the implementation that used to take up most of this file has been
  57. ;; cleaned up, generalized, gratuitously broken by esr, and now resides in
  58. ;; cookie1.el.
  59. (provide 'spook)
  60. ;;; spook.el ends here