branch: externals/lin
commit fc1181e2055638dbac8b7989d50f8a83dc55a629
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Expand the docstring of lin--mode-enable
---
lin.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lin.el b/lin.el
index ed809a2644..dff9e7af0e 100644
--- a/lin.el
+++ b/lin.el
@@ -376,7 +376,9 @@ With optional non-nil REMOVE argument, remove those hooks."
(lin--setup-add-hooks)))
(defun lin--mode-enable (buffer)
- "Enable `lin-mode' in BUFFER if appropriate."
+ "Enable `lin-mode' in BUFFER if appropriate.
+Do it if `lin-mode' is already enabled or the hook of the `major-mode'
+is a member of `lin-mode-hooks'."
(with-current-buffer buffer
(when (or lin-mode
(memq (intern (format "%s-hook" major-mode)) lin-mode-hooks))