Mercurial > hg > xemacs-beta
view lisp/custom/custom-opt.el @ 28:1917ad0d78d7 r19-15b97
Import from CVS: tag r19-15b97
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:51:55 +0200 |
parents | d95e72db5c07 |
children |
line wrap: on
line source
;;; custom-opt.el --- An option group. ;; ;; Copyright (C) 1996 Free Software Foundation, Inc. ;; ;; Author: Per Abrahamsen <abraham@dina.kvl.dk> ;; Keywords: help, faces ;; Version: 1.24 ;; X-URL: http://www.dina.kvl.dk/~abraham/custom/ ;;; Code: (require 'custom) (defgroup options nil "This group contains often used customization options." :group 'emacs) (defvar custom-options '((line-number-mode boolean) (column-number-mode boolean) (debug-on-error boolean) (debug-on-quit boolean) (case-fold-search boolean) (case-replace boolean) (transient-mark-mode boolean)) "Alist of customization options. The first element of each entry should be a variable name, the second a widget type.") (let ((options custom-options) option name type) (while options (setq option (car options) options (cdr options) name (nth 0 option) type (nth 1 option)) (put name 'custom-type type) (custom-add-to-group 'options name 'custom-variable)) (run-hooks 'custom-define-hook)) ;;; The End. (provide 'custom-opt) ;; custom-edit.el ends here