Commit | Line | Data |
---|---|---|
c88ab9ce ER |
1 | ;;; spook.el --- spook phrase utility for overloading the NSA line eater |
2 | ||
f2e3589a | 3 | ;; Copyright (C) 1988, 1993, 2001, 2002, 2003, 2004, |
d7a0267c | 4 | ;; 2005, 2006, 2007 Free Software Foundation, Inc. |
58142744 | 5 | |
d7b4d18f | 6 | ;; Maintainer: FSF |
d7b4d18f | 7 | ;; Keywords: games |
d9ecc911 | 8 | ;; Created: May 1987 |
630cc463 | 9 | |
a2535589 JA |
10 | ;; This file is part of GNU Emacs. |
11 | ||
12 | ;; GNU Emacs is free software; you can redistribute it and/or modify | |
13 | ;; it under the terms of the GNU General Public License as published by | |
e5167999 | 14 | ;; the Free Software Foundation; either version 2, or (at your option) |
a2535589 JA |
15 | ;; any later version. |
16 | ||
17 | ;; GNU Emacs is distributed in the hope that it will be useful, | |
18 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | ;; GNU General Public License for more details. | |
21 | ||
22 | ;; You should have received a copy of the GNU General Public License | |
b578f267 | 23 | ;; along with GNU Emacs; see the file COPYING. If not, write to the |
3a35cf56 LK |
24 | ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
25 | ;; Boston, MA 02110-1301, USA. | |
a2535589 | 26 | |
630cc463 | 27 | ;;; Commentary: |
a2535589 | 28 | |
b578f267 EN |
29 | ;; Steve Strassmann <straz@media-lab.media.mit.edu> didn't write |
30 | ;; this, and even if he did, he really didn't mean for you to use it | |
31 | ;; in an anarchistic way. | |
32 | ;; | |
33 | ;; To use this: | |
34 | ;; Just before sending mail, do M-x spook. | |
35 | ;; A number of phrases will be inserted into your buffer, to help | |
36 | ;; give your message that extra bit of attractiveness for automated | |
37 | ;; keyword scanners. Help defeat the NSA trunk trawler! | |
a2535589 | 38 | |
630cc463 ER |
39 | ;;; Code: |
40 | ||
269d869f | 41 | (require 'cookie1) |
ed73b256 | 42 | |
a2535589 | 43 | ; Variables |
323f7c49 SE |
44 | (defgroup spook nil |
45 | "Spook phrase utility for overloading the NSA line eater." | |
46 | :prefix "spook-" | |
47 | :group 'games) | |
48 | ||
1a601ad8 | 49 | (defcustom spook-phrases-file (expand-file-name "spook.lines" data-directory) |
323f7c49 SE |
50 | "Keep your favorite phrases here." |
51 | :type 'file | |
52 | :group 'spook) | |
53 | ||
54 | (defcustom spook-phrase-default-count 15 | |
55 | "Default number of phrases to insert." | |
56 | :type 'integer | |
57 | :group 'spook) | |
a2535589 | 58 | |
c38b7764 | 59 | ;;;###autoload |
a2535589 JA |
60 | (defun spook () |
61 | "Adds that special touch of class to your outgoing mail." | |
62 | (interactive) | |
215aa4f9 RM |
63 | (cookie-insert spook-phrases-file |
64 | spook-phrase-default-count | |
65 | "Checking authorization..." | |
66 | "Checking authorization...Approved")) | |
67 | ||
68 | ;;;###autoload | |
69 | (defun snarf-spooks () | |
70 | "Return a vector containing the lines from `spook-phrases-file'." | |
71 | (cookie-snarf spook-phrases-file | |
72 | "Checking authorization..." | |
73 | "Checking authorization...Approved")) | |
74 | ||
75 | ;; Note: the implementation that used to take up most of this file has been | |
76 | ;; cleaned up, generalized, gratuitously broken by esr, and now resides in | |
77 | ;; cookie1.el. | |
c88ab9ce | 78 | |
896546cd RS |
79 | (provide 'spook) |
80 | ||
ab5796a9 | 81 | ;;; arch-tag: c682b61f-92b6-4492-9c0d-2367e562449c |
c88ab9ce | 82 | ;;; spook.el ends here |