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

    Use if instead of cond in lin--setup
---
 lin.el | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/lin.el b/lin.el
index 3d74f09320..18281961a3 100644
--- a/lin.el
+++ b/lin.el
@@ -374,12 +374,10 @@ This adds `lin-mode' and `hl-line-mode' to every hook in
 `lin-mode-hooks'.
 
 With optional non-nil REMOVE argument, remove those hooks."
-  (cond
-   (remove
-    (lin--setup-remove-hooks))
-   (t
+  (if remove
+      (lin--setup-remove-hooks)
     (lin--setup-remove-hooks lin--setup-hooks)
-    (lin--setup-add-hooks)))
+    (lin--setup-add-hooks))
   (setq lin--setup-hooks lin-mode-hooks))
 
 (defun lin--mode-enable (buffer)

Reply via email to