summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ennum.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/ennum.el b/ennum.el
index a94c246..a8ab1aa 100644
--- a/ennum.el
+++ b/ennum.el
@@ -91,10 +91,11 @@ the current state of all its variables."
(defun ennum--set-file-modes-recursively (directory directory-mode file-mode executable-file-mode)
(chmod directory directory-mode)
(seq-do (lambda (file)
- (cond
- ((file-directory-p file) (chmod file directory-mode))
- ((file-executable-p file) (chmod file executable-file-mode))
- (t (chmod file file-mode))))
+ (chmod file
+ (cond
+ ((file-directory-p file) directory-mode)
+ ((file-executable-p file) executable-file-mode)
+ (t file-mode))))
(ennum-directory-files directory t t)))
(defmacro ennum-exp (&rest body)