X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lisp%2Friece-options.el;h=8330ff51889e980046707eaf0ccdea493e6fb1ff;hb=b3b4c7eadac62a1a395edd00e87adc4cbdfc5af0;hp=d694dba9df651cb1abca7e056906383e0fd60e68;hpb=8c559007fc96a9fa9945fa5bd532e6a15cee9c54;p=elisp%2Friece.git diff --git a/lisp/riece-options.el b/lisp/riece-options.el index d694dba..8330ff5 100644 --- a/lisp/riece-options.el +++ b/lisp/riece-options.el @@ -29,10 +29,10 @@ ;; User modifiable variables. (defgroup riece nil - "Riece specific customize group") + "Riece specific customize group.") (defgroup riece-options nil - "Riece user customizable variables" + "Riece user customizable variables." :prefix "riece-" :group 'riece) @@ -42,7 +42,8 @@ riece-others-buffer-mode riece-user-list-buffer-mode riece-channel-list-buffer-mode - riece-layout) + riece-layout + riece-addons) "Variables saved after each session is completed." :type 'string :group 'riece-options) @@ -58,7 +59,7 @@ :group 'riece-options) (defgroup riece-looks nil - "Related to look and feel" + "Look and feel." :prefix "riece-" :group 'riece) @@ -76,7 +77,7 @@ See the document of the function `recenter'." :group 'riece-looks) (defcustom riece-directory (expand-file-name "~/.riece") - "Where to look for data files." + "Where to look for startup files." :type 'directory :group 'riece-options) @@ -86,6 +87,14 @@ See the document of the function `recenter'." :type 'directory :group 'riece-options) +(defcustom riece-data-directory + (if (fboundp 'locate-data-directory) + (locate-data-directory "riece") + (file-name-directory load-file-name)) + "Where to look for data files." + :type 'directory + :group 'riece-options) + (defcustom riece-variables-file (expand-file-name "init" riece-directory) "Where to look for variables." @@ -127,12 +136,12 @@ way is to put Riece variables on .emacs or file loaded from there." :group 'riece-options) (defgroup riece-server nil - "Server settings" + "Server settings." :prefix "riece-" :group 'riece) (defgroup riece-channel nil - "Channel settings" + "Channel settings." :prefix "riece-" :group 'riece) @@ -228,7 +237,7 @@ way is to put Riece variables on .emacs or file loaded from there." :type 'boolean :group 'riece-server) -(defcustom riece-quit-timeout 10 +(defcustom riece-quit-timeout 1 "Quit timeout when there is no response from server." :type '(radio (integer :tag "Seconds") (const nil)) @@ -301,22 +310,6 @@ way is to put Riece variables on .emacs or file loaded from there." :type 'function :group 'riece-options) -(defcustom riece-shrink-buffer-idle-time-delay 5 - "Number of idle seconds to wait before shrinking channel buffers." - :type 'integer - :group 'riece-options) - -(defcustom riece-max-buffer-size nil - "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