Skip to content

Commit 7cf82b2

Browse files
committed
Setup customization variables
1 parent d94e7d6 commit 7cf82b2

File tree

1 file changed

+27
-14
lines changed

1 file changed

+27
-14
lines changed

fireplace.el

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,41 @@
2626
;; Puts your emacs on fire
2727

2828
;;; Code:
29+
30+
(defgroup fireplace nil
31+
"Config for `fireplace' ."
32+
:group 'applications)
33+
34+
2935
;; 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)
3239

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)
3543

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)
3847

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)
4151

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)
4455

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)
4759

4860

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)
5164

5265
;; Program controlled variables
5366

0 commit comments

Comments
 (0)