branch: externals/lin
commit 953b6464d36c3cffbeb0d64be38f19d0735fc140
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Further simplify lin--setup
    
    We always remove the hooks, so this should do it.
---
 lin.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lin.el b/lin.el
index 18281961a3..16840f0201 100644
--- a/lin.el
+++ b/lin.el
@@ -374,9 +374,8 @@ This adds `lin-mode' and `hl-line-mode' to every hook in
 `lin-mode-hooks'.
 
 With optional non-nil REMOVE argument, remove those hooks."
-  (if remove
-      (lin--setup-remove-hooks)
-    (lin--setup-remove-hooks lin--setup-hooks)
+  (lin--setup-remove-hooks)
+  (unless remove
     (lin--setup-add-hooks))
   (setq lin--setup-hooks lin-mode-hooks))
 

Reply via email to