From: Lars Ingebrigtsen Date: Wed, 21 Aug 2019 20:49:57 +0000 (-0700) Subject: Make hide-ifdef-mode-prefix-key customisable X-Git-Tag: emacs-27.0.90~1328^2~143 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=11de1155f81fdac515b5465d31634c7b91a4d42a;p=emacs.git Make hide-ifdef-mode-prefix-key customisable * lisp/progmodes/hideif.el (hide-ifdef-mode-prefix-key): Make into a defcustom since it seems like this is something that should be user-customisable (bug#8922). --- diff --git a/lisp/progmodes/hideif.el b/lisp/progmodes/hideif.el index 1b06077005c..9fea447e765 100644 --- a/lisp/progmodes/hideif.el +++ b/lisp/progmodes/hideif.el @@ -112,28 +112,23 @@ (defcustom hide-ifdef-initially nil "Non-nil means call `hide-ifdefs' when Hide-Ifdef mode is first activated." - :type 'boolean - :group 'hide-ifdef) + :type 'boolean) (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) + :type 'boolean) (defcustom hide-ifdef-lines nil "Non-nil means hide the #ifX, #else, and #endif lines." - :type 'boolean - :group 'hide-ifdef) + :type 'boolean) (defcustom hide-ifdef-shadow nil "Non-nil means shadow text instead of hiding it." :type 'boolean - :group 'hide-ifdef :version "23.1") (defface hide-ifdef-shadow '((t (:inherit shadow))) "Face for shadowing ifdef blocks." - :group 'hide-ifdef :version "23.1") (defcustom hide-ifdef-exclude-define-regexp nil @@ -168,7 +163,6 @@ This behavior is generally undesirable. If this option is non-nil, the outermos "C/C++ header file name patterns to determine if current buffer is a header. Effective only if `hide-ifdef-expand-reinclusion-protection' is t." :type 'string - :group 'hide-ifdef :version "25.1") (defvar hide-ifdef-mode-submap @@ -196,8 +190,10 @@ Effective only if `hide-ifdef-expand-reinclusion-protection' is t." map) "Keymap used by `hide-ifdef-mode' under `hide-ifdef-mode-prefix-key'.") -(defconst hide-ifdef-mode-prefix-key "\C-c@" - "Prefix key for all Hide-Ifdef mode commands.") +(defcustom hide-ifdef-mode-prefix-key "\C-c@" + "Prefix key for all Hide-Ifdef mode commands." + :type 'key-sequence + :version "27.1") (defvar hide-ifdef-mode-map ;; Set up the mode's main map, which leads via the prefix key to the submap.