diff options
author | Glenn Morris <rgm@gnu.org> | 2008-01-21 04:46:12 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2008-01-21 04:46:12 +0000 |
commit | adcc05dc927c33cfe8c03c761a11de26756ff5d7 (patch) | |
tree | 25fe759a54b0ce853667d970a4811d02e58f1bde /lisp/progmodes/hideif.el | |
parent | 43530341912354c83d9ea9974ba829bb6b59e388 (diff) | |
download | emacs-adcc05dc927c33cfe8c03c761a11de26756ff5d7.tar.gz |
Move defcustoms and defface to start of file.
Diffstat (limited to 'lisp/progmodes/hideif.el')
-rw-r--r-- | lisp/progmodes/hideif.el | 63 |
1 files changed, 32 insertions, 31 deletions
diff --git a/lisp/progmodes/hideif.el b/lisp/progmodes/hideif.el index 0d2bf1a656a..b0f3cc9e3af 100644 --- a/lisp/progmodes/hideif.el +++ b/lisp/progmodes/hideif.el @@ -1,7 +1,7 @@ ;;; hideif.el --- hides selected code within ifdef -;; Copyright (C) 1988, 1994, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 -;; Free Software Foundation, Inc. +;; Copyright (C) 1988, 1994, 2001, 2002, 2003, 2004, 2005, 2006, 2007, +;; 2008 Free Software Foundation, Inc. ;; Author: Daniel LaLiberte <liberte@holonexus.org> ;; Maintainer: FSF @@ -114,6 +114,36 @@ "Hide selected code within `ifdef'." :group 'c) +;;;###autoload +(defcustom hide-ifdef-initially nil + "Non-nil means call `hide-ifdefs' when Hide-Ifdef mode is first activated." + :type 'boolean + :group 'hide-ifdef) + +;;;###autoload +(defcustom hide-ifdef-read-only nil + "Set to non-nil if you want buffer to be read-only while hiding text." + :type 'boolean + :group 'hide-ifdef) + +;;;###autoload +(defcustom hide-ifdef-lines nil + "Non-nil means hide the #ifX, #else, and #endif lines." + :type 'boolean + :group 'hide-ifdef) + +;;;###autoload +(defcustom hide-ifdef-shadow nil + "Non-nil means shadow text instead of hiding it." + :type 'boolean + :group 'hide-ifdef) + +;;;###autoload +(defface hide-ifdef-shadow '((t (:inherit shadow))) + "Face for shadowing ifdef blocks." + :group 'hide-ifdef) + + (defvar hide-ifdef-mode-submap ;; Set up the submap that goes after the prefix key. (let ((map (make-sparse-keymap))) @@ -833,35 +863,6 @@ It does not do the work that's pointless to redo on a recursive entry." ;;===%%SF%% exports (Start) === -;;;###autoload -(defcustom hide-ifdef-initially nil - "Non-nil means call `hide-ifdefs' when Hide-Ifdef mode is first activated." - :type 'boolean - :group 'hide-ifdef) - -;;;###autoload -(defcustom hide-ifdef-read-only nil - "Set to non-nil if you want buffer to be read-only while hiding text." - :type 'boolean - :group 'hide-ifdef) - -;;;###autoload -(defcustom hide-ifdef-lines nil - "Non-nil means hide the #ifX, #else, and #endif lines." - :type 'boolean - :group 'hide-ifdef) - -;;;###autoload -(defcustom hide-ifdef-shadow nil - "Non-nil means shadow text instead of hiding it." - :type 'boolean - :group 'hide-ifdef) - -;;;###autoload -(defface hide-ifdef-shadow '((t (:inherit shadow))) - "Face for shadowing ifdef blocks." - :group 'hide-ifdef) - (defun hide-ifdef-toggle-read-only () "Toggle `hide-ifdef-read-only'." (interactive) |