emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 11de115: Make hide-ifdef-mode-prefix-key customisab


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 11de115: Make hide-ifdef-mode-prefix-key customisable
Date: Wed, 21 Aug 2019 16:50:25 -0400 (EDT)

branch: master
commit 11de1155f81fdac515b5465d31634c7b91a4d42a
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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).
---
 lisp/progmodes/hideif.el | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/lisp/progmodes/hideif.el b/lisp/progmodes/hideif.el
index 1b06077..9fea447 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]