diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2019-08-21 13:49:57 -0700 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-08-21 13:49:57 -0700 |
commit | 11de1155f81fdac515b5465d31634c7b91a4d42a (patch) | |
tree | 08e7e5f52f46ae2db712745ae00d504e1856f58a /lisp/progmodes/hideif.el | |
parent | 08dd4b9f0c0f2ccfcd17ae719b4a354919ddfeb5 (diff) | |
download | emacs-11de1155f81fdac515b5465d31634c7b91a4d42a.tar.gz |
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).
Diffstat (limited to 'lisp/progmodes/hideif.el')
-rw-r--r-- | lisp/progmodes/hideif.el | 18 |
1 files changed, 7 insertions, 11 deletions
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. |