summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-02-17 21:56:05 -0500
committerKyle Meyer <kyle@kyleam.com>2015-02-17 21:56:05 -0500
commitf2c518cbd3e3a313ac518c177907cd75938f8402 (patch)
treeaf96857b26cd67903f400530a51c02437ff1fafe
parentbd5c19b53c8ab90ad3efc410002f274fa4545009 (diff)
downloadbog-f2c518cbd3e3a313ac518c177907cd75938f8402.tar.gz
bog-notes: Rewrite with directory-files
-rw-r--r--bog.el8
1 files changed, 2 insertions, 6 deletions
diff --git a/bog.el b/bog.el
index 6b72fea..783893c 100644
--- a/bog.el
+++ b/bog.el
@@ -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'."