* riece-options.el (riece-addons): Add riece-toolbar.
[elisp/riece.git] / lisp / riece-options.el
index b0975ba..26f1463 100644 (file)
@@ -115,7 +115,8 @@ way is to put Riece variables on .emacs or file loaded from there."
                          riece-menu
                          riece-icon
                          riece-ignore
-                         riece-log)
+                         riece-log
+                         riece-toolbar)
   "Add-ons insinuated into Riece."
   :type '(repeat symbol)
   :group 'riece-options)
@@ -290,17 +291,17 @@ way is to put Riece variables on .emacs or file loaded from there."
   :type 'integer
   :group 'riece-options)
 
-(defcustom riece-shrink-buffer-remove-lines 10
-  "Number of lines removed when shrinking channel buffers."
-  :type 'integer
-  :group 'riece-options)
-
 (defcustom riece-max-buffer-size 65535
   "Maximum size of channel buffers."
   :type '(radio (integer :tag "Number of characters")
                (const nil))
   :group 'riece-options)
 
+(defcustom riece-shrink-buffer-remove-chars (/ riece-max-send-size 2)
+  "Number of chars removed when shrinking channel buffers."
+  :type 'integer
+  :group 'riece-options)
+
 (defcustom riece-format-time-function #'current-time-string
   "Function to convert the specified time to the human readable form."
   :type 'function