From af39d219829dad080929aaf015bc43541b1c271c Mon Sep 17 00:00:00 2001 From: MitchMarq42 Date: Mon, 15 May 2023 19:06:30 -0800 Subject: [PATCH] make the corner a Custom variable. --- notibox.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/notibox.el b/notibox.el index d4a4c6d..57c06e1 100644 --- a/notibox.el +++ b/notibox.el @@ -34,7 +34,13 @@ (defvar notibox-width 40) ; characters (defvar notibox-height 4) ; characters (defvar notibox-border-color "#808080") -(defvar notibox-corner 'bottomright) +(defcustom notibox-corner 'bottomright + "Corner in which to show the NotiBox." + :type '(choice + (const :tag "Top Left" 'topleft) + (const :tag "Bottom Left" 'bottomleft) + (const :tag "Top Right" 'topright) + (const :tag "Bottom Right" 'bottomright))) (defvar notibox-padding 30) (defvar alert-fade-time 5); seconds, also provided by `alert' package (defvar notibox--refresh-delay 0.1) ; seconds. Probably don't change this one.