diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-02-17 21:56:05 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-02-17 21:56:05 -0500 |
commit | f2c518cbd3e3a313ac518c177907cd75938f8402 (patch) | |
tree | af96857b26cd67903f400530a51c02437ff1fafe /bog.el | |
parent | bd5c19b53c8ab90ad3efc410002f274fa4545009 (diff) | |
download | bog-f2c518cbd3e3a313ac518c177907cd75938f8402.tar.gz |
bog-notes: Rewrite with directory-files
Diffstat (limited to 'bog.el')
-rw-r--r-- | bog.el | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -943,12 +943,8 @@ level `bog-refile-maxlevel' are considered." (defun bog-notes () "Return Org files in `bog-note-directory'." - (--remove (let ((base-name (file-name-nondirectory it))) - (or (string-prefix-p "." base-name) - (auto-save-file-name-p base-name))) - (file-expand-wildcards - (concat (file-name-as-directory bog-note-directory) - "*.org")))) + (directory-files bog-note-directory t + "^[^\\.].*.org$")) (defun bog-read-note-file-name () "Read name of Org file in `bog-note-directory'." |