X-Git-Url: https://cgit.sxemacs.org/?p=riece;a=blobdiff_plain;f=lisp%2Friece-options.el;h=7fc2e4885cfa1116c283beae316d0ad14b3ef884;hp=945c699f58d9c16ab5a66e011644e98419b4299a;hb=220268387afffb44bb125a48d32e3caf71390618;hpb=9d9bd64ae0d66f9fe0d6e05cb7fe3e5013bd4e35 diff --git a/lisp/riece-options.el b/lisp/riece-options.el index 945c699..7fc2e48 100644 --- a/lisp/riece-options.el +++ b/lisp/riece-options.el @@ -24,6 +24,7 @@ ;;; Code: +(require 'riece-version) (require 'riece-globals) ;; User modifiable variables. @@ -59,16 +60,19 @@ :prefix "riece-" :group 'riece) -(defcustom riece-truncate-partial-width-windows nil - "If non-nil, truncate lines in splitting windows such as others buffer." - :type 'boolean - :group 'riece-looks) - (defcustom riece-use-full-window t "If non-nil, whole Emacs window is used to display dialogue." :type 'boolean :group 'riece-looks) +(defcustom riece-window-center-line -2 + "Line number of center point in window when scrolling. +If nil, erases the entire frame and then redraws with point in the +center of the window. Negative means relative to bottom of window. +See the document of the function `recenter'." + :type 'integer + :group 'riece-looks) + (defcustom riece-directory (expand-file-name "~/.riece") "Where to look for data files." :type 'directory @@ -79,7 +83,7 @@ "Where to look for add-on files." :type 'directory :group 'riece-options) - + (defcustom riece-variables-file (expand-file-name "init" riece-directory) "Where to look for variables." @@ -109,7 +113,8 @@ way is to put Riece variables on .emacs or file loaded from there." riece-url riece-button riece-menu - riece-icon) + riece-icon + riece-ignore) "Add-ons insinuated into Riece." :type '(repeat symbol) :group 'riece-options) @@ -157,7 +162,7 @@ way is to put Riece variables on .emacs or file loaded from there." (args (list spec))) (widget-put widget :args args) widget)) - + (defcustom riece-server-alist nil "An alist mapping server names to plist." :type 'riece-server-spec @@ -168,6 +173,11 @@ way is to put Riece variables on .emacs or file loaded from there." :type 'string :group 'riece-server) +(defcustom riece-protocol 'irc + "Protocol support." + :type 'symbol + :group 'riece-server) + (defcustom riece-default-password (getenv "IRCPASSWORD") "Your password." :type '(radio (string :tag "Password") @@ -192,6 +202,11 @@ way is to put Riece variables on .emacs or file loaded from there." (list (string :tag "Channel") (string :tag "Key")))) :group 'riece-channel) +(defcustom riece-startup-server-list nil + "A list of servers to connect automatically at startup." + :type '(repeat (string :tag "Server")) + :group 'riece-server) + (defcustom riece-retry-with-new-nickname nil "When nickname has already been in use, grow-tail automatically." :type 'boolean @@ -203,6 +218,11 @@ way is to put Riece variables on .emacs or file loaded from there." (const nil)) :group 'riece-server) +(defcustom riece-default-open-connection-function #'open-network-stream + "Default function used for connecting to an IRC server." + :type 'function + :group 'riece-server) + (defcustom riece-channel-buffer-mode t "When non-nil, Riece will display a channel buffer." :type 'boolean @@ -234,14 +254,14 @@ way is to put Riece variables on .emacs or file loaded from there." :type 'boolean :group 'riece-options) -(defcustom riece-quit-message nil +(defcustom riece-quit-message (riece-extended-version) "Default quit message." - :type '(radio (string :tag "Quit message")) + :type '(string :tag "Quit message") :group 'riece-options) -(defcustom riece-away-message nil +(defcustom riece-away-message "Gone" "Default away message." - :type '(radio (string :tag "Away message")) + :type '(string :tag "Away message") :group 'riece-options) (defcustom riece-gather-channel-modes nil