branch: externals/setup
commit 31dfc0f24eaeb1e50ceac7776cc486f5a1845e79
Author: Earl Hyatt <oka...@protonmail.com>
Commit: Philip Kaludercic <phil...@posteo.net>

    Expand on how setting a "feature" sets hooks and maps.
---
 setup.el | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/setup.el b/setup.el
index ae6902c01b..ce7ca39d6f 100644
--- a/setup.el
+++ b/setup.el
@@ -376,8 +376,11 @@ VAL into one s-expression."
               bodies))
       (macroexp-progn (if features (nreverse bodies) body))))
   :documentation "Change the FEATURE that BODY is configuring.
-This macro also declares a current mode by appending \"-mode\" to
-FEATURE, unless it already ends with \"-mode\".
+This macro also:
+- Declares a current mode by appending \"-mode\" to
+  FEATURE, unless it already ends with \"-mode\"
+- Declares a current hook by appending \"-hook\" to the mode
+- Declares a current map by appending \"-map\" to the mode
 If FEATURE is a list, apply BODY to all elements of FEATURE."
   :debug '(sexp setup)
   :indent 1)
@@ -395,7 +398,10 @@ If FEATURE is a list, apply BODY to all elements of 
FEATURE."
               bodies))
       (macroexp-progn (nreverse bodies))))
   :documentation "Change the MODE that BODY is configuring.
-If MODE is a list, apply BODY to all elements of MODE."
+If MODE is a list, apply BODY to all elements of MODE.
+This macro also:
+- Declares a current hook by appending \"-hook\" to the mode
+- Declares a current map by appending \"-map\" to the mode"
   :debug '(sexp setup)
   :indent 1)
 

Reply via email to