[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote 9825e3885e 3/6: Document the denote-rename-buffe
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals/denote 9825e3885e 3/6: Document the denote-rename-buffer-mode |
|
Date: |
Mon, 29 May 2023 03:57:44 -0400 (EDT) |
branch: externals/denote
commit 9825e3885e67cd130e1ad9c0430e8688d15f36df
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Document the denote-rename-buffer-mode
---
README.org | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/README.org b/README.org
index 9f65c8a376..2e40881fae 100644
--- a/README.org
+++ b/README.org
@@ -1969,6 +1969,40 @@ multimedia in a systematic way (and, perhaps, use them
as attachments
for the notes Denote produces if you are writing Org notes and are using
its standand attachments' facility).
+* Automatically rename Denote buffers
+:PROPERTIES:
+:CUSTOM_ID: h:3ca4db16-8f26-4d7d-b748-bac48ae32d69
+:END:
+
+[ Part of {{{development-version}}}. ]
+
+#+findex: denote-rename-buffer-mode
+The ~denote-rename-buffer-mode~ minor mode provides the means to
+automatically rename the buffer of a Denote file name upon visiting
+the file. A buffer is renamed upon visiting the underlying file.
+This means that existing buffers are not renamed until they are
+visited again in a new buffer (files are visited with the command
+~find-file~ or related). Enable the mode thus:
+
+#+begin_src emacs-lisp
+(denote-rename-buffer-mode 1)
+#+end_src
+
+The default behaviour is to rename the buffer based on the file's
+title, which is retrieved from the front matter or from the =TITLE=
+component of the file name ([[#h:4e9c7512-84dc-4dfb-9fa9-e15d51178e5d][The
file-naming scheme]]).
+
+#+vindex: denote-rename-buffer-function
+Customize the user option ~denote-rename-buffer-function~ to affect
+how buffers are renamed. Its value must be the symbol of a function.
+The default is the ~denote-rename-buffer-with-title~, with an
+alternative of ~denote-rename-buffer-with-identifier~.
+
+The user option also accepts an arbitrary function. Refer to the
+implementation details of ~denote-rename-buffer-with-title~ or
+~denote-rename-buffer-with-identifier~ for guidance on how to write a
+custom function.
+
* Use Org dynamic blocks
:PROPERTIES:
:CUSTOM_ID: h:8b542c50-dcc9-4bca-8037-a36599b22779
- [elpa] externals/denote updated (4de8c209e8 -> 90d7b26142), ELPA Syncer, 2023/05/29
- [elpa] externals/denote 65e22ff27d 2/6: Expand denote-rename-buffer-mode doc string, ELPA Syncer, 2023/05/29
- [elpa] externals/denote 1b73466e93 1/6: Define denote-rename-buffer-function and refine the minor mode setup, ELPA Syncer, 2023/05/29
- [elpa] externals/denote 3e84d6121f 4/6: Refer to denote-rename-buffer-mode from file renaming section, ELPA Syncer, 2023/05/29
- [elpa] externals/denote 90d7b26142 6/6: Clarify difference between renaming buffers and files, ELPA Syncer, 2023/05/29
- [elpa] externals/denote 9825e3885e 3/6: Document the denote-rename-buffer-mode,
ELPA Syncer <=
- [elpa] externals/denote 341e63e796 5/6: Fix typo, ELPA Syncer, 2023/05/29