|
26 | 26 | ;; Puts your emacs on fire |
27 | 27 |
|
28 | 28 | ;;; Code: |
| 29 | + |
| 30 | +(defgroup fireplace nil |
| 31 | + "Config for `fireplace' ." |
| 32 | + :group 'applications) |
| 33 | + |
| 34 | + |
29 | 35 | ;; User definable Variables |
30 | | -(defvar fireplace-smoke-on nil |
31 | | - "Controls if smoke is drawn of not.") |
| 36 | +(defcustom fireplace-smoke-on nil |
| 37 | + "Controls if smoke is drawn of not." |
| 38 | + :type 'string :group 'fireplace) |
32 | 39 |
|
33 | | -(defvar fireplace-fury 0.85 |
34 | | - "The redraw speed of the fire. Between 0 and 1.") |
| 40 | +(defcustom fireplace-fury 0.85 |
| 41 | + "The redraw speed of the fire. Between 0 and 1." |
| 42 | + :type 'float :group 'fireplace) |
35 | 43 |
|
36 | | -(defvar fireplace-smoke-char ?\* |
37 | | - "Char used for drawing smoke.") |
| 44 | +(defcustom fireplace-smoke-char ?\* |
| 45 | + "Char used for drawing smoke." |
| 46 | + :type 'character :group 'fireplace) |
38 | 47 |
|
39 | | -(defvar fireplace-background-char ?\s |
40 | | - "Char used for filling in the background.") |
| 48 | +(defcustom fireplace-background-char ?\s |
| 49 | + "Char used for filling in the background." |
| 50 | + :type 'character :group 'fireplace) |
41 | 51 |
|
42 | | -(defvar fireplace-fill-char ?\s |
43 | | - "Char used for drawing smoke.") |
| 52 | +(defcustom fireplace-fill-char ?\s |
| 53 | + "Char used for drawing smoke." |
| 54 | + :type 'character :group 'fireplace) |
44 | 55 |
|
45 | | -(defvar fireplace-flame-pos '(0.5 0.2 0.8 0.36 0.64 ) |
46 | | - "Relative position and order for drawing flames.") |
| 56 | +(defcustom fireplace-flame-pos '(0.5 0.2 0.8 0.36 0.64 ) |
| 57 | + "Relative position and order for drawing flames." |
| 58 | + :type '(list float) :group 'fireplace) |
47 | 59 |
|
48 | 60 |
|
49 | | -(defvar fireplace-buffer-name "*fireplace*" |
50 | | - "Default name for fireplace buffer.") |
| 61 | +(defcustom fireplace-buffer-name "*fireplace*" |
| 62 | + "Default name for fireplace buffer." |
| 63 | + :type 'string :group 'fireplace) |
51 | 64 |
|
52 | 65 | ;; Program controlled variables |
53 | 66 |
|
|
0 commit comments