X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Friece-options.el;h=040691452f31a0d9c2924a4ff68bdfa1ea9f2581;hb=bf2df5d4bf0f70c7f102eb924e352f83d46f3fa4;hp=998232277cf80cc99983d5a25ca6b8508742afa5;hpb=573032670053d448768fe95cbe082944dedf64fc;p=elisp%2Friece.git diff --git a/lisp/riece-options.el b/lisp/riece-options.el index 9982322..0406914 100644 --- a/lisp/riece-options.el +++ b/lisp/riece-options.el @@ -19,8 +19,8 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the -;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, -;; Boston, MA 02111-1307, USA. +;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +;; Boston, MA 02110-1301, USA. ;;; Code: @@ -29,18 +29,23 @@ ;; User modifiable variables. (defgroup riece nil - "Riece specific customize group") + "Riece specific customize group." + :prefix "riece-" + :group 'applications) (defgroup riece-options nil - "Riece user customizable variables" + "Riece user customizable variables." :prefix "riece-" :group 'riece) (defcustom riece-saved-forms '(riece-server-alist riece-channel-buffer-mode + riece-others-buffer-mode riece-user-list-buffer-mode - riece-layout) + riece-channel-list-buffer-mode + riece-layout + riece-addons) "Variables saved after each session is completed." :type 'string :group 'riece-options) @@ -56,7 +61,7 @@ :group 'riece-options) (defgroup riece-looks nil - "Related to look and feel" + "Look and feel." :prefix "riece-" :group 'riece) @@ -74,7 +79,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 +89,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." @@ -116,18 +129,23 @@ way is to put Riece variables on .emacs or file loaded from there." riece-icon riece-ignore riece-log - riece-toolbar) + riece-toolbar + riece-alias + riece-ctlseq + riece-keyword + riece-shrink-buffer + riece-mcat) "Add-ons insinuated into Riece." :type '(repeat symbol) :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) @@ -197,6 +215,11 @@ way is to put Riece variables on .emacs or file loaded from there." :group 'riece-server) (defcustom riece-username nil + "Your login name." + :type 'string + :group 'riece-server) + +(defcustom riece-realname nil "Your user name." :type 'string :group 'riece-server) @@ -223,7 +246,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)) @@ -234,11 +257,26 @@ way is to put Riece variables on .emacs or file loaded from there." :type 'function :group 'riece-server) +(defcustom riece-user-cache-max-size 512 + "Maximum size of cache of user names." + :type 'integer + :group 'riece-server) + +(defcustom riece-channel-cache-max-size 512 + "Maximum size of cache of channel names." + :type 'integer + :group 'riece-server) + (defcustom riece-channel-buffer-mode t "When non-nil, Riece will display a channel buffer." :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 @@ -270,6 +308,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") @@ -280,27 +324,11 @@ 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) -(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 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