diff options
| author | Thanos Apollo <public@thanosapollo.org> | 2026-02-23 00:25:54 +0200 |
|---|---|---|
| committer | Thanos Apollo <public@thanosapollo.org> | 2026-02-23 00:48:28 +0200 |
| commit | aa6f9bc3bc49dc582ad0fa93241e8e26779eb87a (patch) | |
| tree | 30eedb22e184212fe49d1611239856bfdc9431c4 | |
| parent | 16d3ce8356dad16cab565c7a54d9fa73ed4a8544 (diff) | |
[fix] create-file: adjust docstring and trailing whitespace.
| -rw-r--r-- | org-gnosis.el | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/org-gnosis.el b/org-gnosis.el index be0ff24..577cea4 100644 --- a/org-gnosis.el +++ b/org-gnosis.el @@ -144,11 +144,11 @@ If nil, journal entries are created as separate files in (file :tag "Single journal file"))) (defun org-gnosis-journal--create-file () - "Create `org-gnosis-journal' when non-nil and file it does not exists." + "Create `org-gnosis-journal-file' when non-nil and file does not exist." (when (and org-gnosis-journal-file (not (file-exists-p org-gnosis-journal-file))) (with-current-buffer (find-file-noselect org-gnosis-journal-file) - (insert (format "#+title: %s Journal \n#+filetags: \n" (or user-full-name ""))) + (insert (format "#+title: %s Journal\n#+filetags: \n" (or user-full-name ""))) (org-gnosis-mode) (save-buffer) (message "Created journal file.")))) @@ -174,8 +174,6 @@ If nil, journal entries are created as separate files in (emacsql-sqlite-open org-gnosis-database-file))) org-gnosis-db--connection) - - (defun org-gnosis--combine-tags (inherited-tags headline-tags) "Combine INHERITED-TAGS and HEADLINE-TAGS, removing duplicates." (delete-dups (append (or inherited-tags '()) (or headline-tags '())))) |
