Skip to content

Commit

Permalink
bootstrap: Restrict scope of tangle-all
Browse files Browse the repository at this point in the history
  • Loading branch information
veracioux committed May 9, 2024
1 parent 970e6ed commit 80d3b9c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
13 changes: 11 additions & 2 deletions bootstrap/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,17 @@ Custom functions and tweaks:
(interactive)
(when to-destination (delete-directory (haris/tangle-home) t))
(let ((org-dotfiles-root (or dotfiles-dir "~/.haris")))
(dolist (file (cl-delete-if (lambda (x) (string-match-p "^\\.#" x))
(append (directory-files-recursively org-dotfiles-root "\\.org$"))))
(dolist (file (cl-delete-if
(lambda (x) (string-match-p "^\\.#" x))
(append (directory-files-recursively
org-dotfiles-root
"\\.org$"
nil
;; Exclude hidden directories
(lambda (dir-name)
(string-match
"^[^\\.]"
(file-name-nondirectory dir-name)))))))
(message "Tangling file: %s" file)
(haris/tangle--file-non-interactively file)))
(when to-destination
Expand Down
13 changes: 11 additions & 2 deletions bootstrap/tangle.el
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,17 @@ alternative dotfiles directory to '~/.haris'."
(interactive)
(when to-destination (delete-directory (haris/tangle-home) t))
(let ((org-dotfiles-root (or dotfiles-dir "~/.haris")))
(dolist (file (cl-delete-if (lambda (x) (string-match-p "^\\.#" x))
(append (directory-files-recursively org-dotfiles-root "\\.org$"))))
(dolist (file (cl-delete-if
(lambda (x) (string-match-p "^\\.#" x))
(append (directory-files-recursively
org-dotfiles-root
"\\.org$"
nil
;; Exclude hidden directories
(lambda (dir-name)
(string-match
"^[^\\.]"
(file-name-nondirectory dir-name)))))))
(message "Tangling file: %s" file)
(haris/tangle--file-non-interactively file)))
(when to-destination
Expand Down

0 comments on commit 80d3b9c

Please sign in to comment.