X-Git-Url: https://cgit.sxemacs.org/?p=riece;a=blobdiff_plain;f=lisp%2Friece-options.el;h=2d39612f3b874f3982756540bc01590b961eea14;hp=c8ee92be9250059377108b9d0dc4eee42660156b;hb=2244c15ef11848cbc76e818e37a52c22fe359076;hpb=503c9a229a8a8ee049091ef6d2cdff38d0704f43 diff --git a/lisp/riece-options.el b/lisp/riece-options.el index c8ee92b..2d39612 100644 --- a/lisp/riece-options.el +++ b/lisp/riece-options.el @@ -39,7 +39,9 @@ (defcustom riece-saved-forms '(riece-server-alist riece-channel-buffer-mode + riece-others-buffer-mode riece-user-list-buffer-mode + riece-channel-list-buffer-mode riece-layout) "Variables saved after each session is completed." :type 'string @@ -74,7 +76,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) @@ -84,6 +86,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 (locate-library (symbol-file 'riece-data-directory)))) + "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." @@ -114,7 +124,12 @@ way is to put Riece variables on .emacs or file loaded from there." riece-button riece-menu riece-icon - riece-ignore) + riece-ignore + riece-log + riece-toolbar + riece-alias + riece-ctlseq + riece-keyword) "Add-ons insinuated into Riece." :type '(repeat symbol) :group 'riece-options) @@ -183,7 +198,7 @@ way is to put Riece variables on .emacs or file loaded from there." :type 'integer :group 'riece-server) -(defcustom riece-send-delay 8 +(defcustom riece-send-delay 2 "Duration of multiple send." :type 'integer :group 'riece-server) @@ -194,8 +209,7 @@ way is to put Riece variables on .emacs or file loaded from there." (const :tag "No" nil)) :group 'riece-server) -(defcustom riece-username (or (getenv "IRCNAME") - (user-real-login-name)) +(defcustom riece-username nil "Your user name." :type 'string :group 'riece-server) @@ -238,6 +252,11 @@ way is to put Riece variables on .emacs or file loaded from there." :type 'boolean :group 'riece-looks) +(defcustom riece-others-buffer-mode t + "When non-nil, Riece will display an \"*Others*\" buffer." + :type 'boolean + :group 'riece-looks) + (defcustom riece-user-list-buffer-mode t "When non-nil, Riece will display a nick list buffer." :type 'boolean @@ -269,6 +288,12 @@ way is to put Riece variables on .emacs or file loaded from there." :type '(string :tag "Quit message") :group 'riece-options) +(defcustom riece-part-message nil + "Default part message." + :type '(choice (const :tag "No message" nil) + (string :tag "Part message")) + :group 'riece-options) + (defcustom riece-away-message "Gone" "Default away message." :type '(string :tag "Away message") @@ -279,7 +304,7 @@ way is to put Riece variables on .emacs or file loaded from there." :type 'boolean :group 'riece-options) -(defcustom riece-buffer-dispose-function #'bury-buffer +(defcustom riece-buffer-dispose-function #'kill-buffer "Function called after the buffer was disposed." :type 'function :group 'riece-options) @@ -289,12 +314,17 @@ way is to put Riece variables on .emacs or file loaded from there." :type 'integer :group 'riece-options) -(defcustom riece-max-buffer-size 65535 +(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