The format of the links #549
Closed
quijote-asim
started this conversation in
Ideas
Replies: 4 comments 1 reply
-
On 2025-02-19 15:17, Quijote Libre wrote:
I noticed that denote inserts the links by reconstructing the title of
the note in camel format.
Would it be possible to adjust this format with a variable?
For me, the ideal would be to put the title as it is in the
frontmatter.
The ideal you describe is what we do by default. If the file does
not have a title in the front matter, then we use that of the file
name.
I suspect that there is some custom code in your setup that affects
what you are seeing. Can you check your configuration and maybe share
it here?
|
Beta Was this translation helpful? Give feedback.
1 reply
-
From: Quijote Libre ***@***.***>
Date: Thu, 20 Feb 2025 03:40:59 -0800
I have checked my configuration, but my limitations with eLisp have not allowed me to find anything.
Attached is a zip file with my configuration files on [ql-conf.zip](https://github.com/user-attachments/files/18885892/ql-conf.zip)
Thank you! I took a look at what you have. Here is the Denote part:
(use-package denote
:defer t
:custom
(denote-sort-keywords nil)
(denote-link-description-function #'ews-denote-link-description-title-case)
:hook
(dired-mode . denote-dired-mode)
:custom-face
(denote-faces-link ((t (:slant italic))))
:init
(require 'denote-org-extras)
:bind
(("C-c w d b" . denote-find-backlink)
("C-c w d d" . denote-date)
("C-c w d l" . denote-find-link)
("C-c w d h" . denote-org-extras-link-to-heading)
("C-c w d i" . denote-link-or-create)
("C-c w d k" . denote-rename-file-keywords)
("C-c w d n" . denote)
("C-c w d r" . denote-rename-file)
("C-c w d R" . denote-rename-file-using-front-matter)))
This line is responsible what how link descriptions are formatted:
(denote-link-description-function #'ews-denote-link-description-title-case)
It does "title case", according to its name, which basically converts to
upper case the first letter of most words (I never use title case in my
writings, by the way, because I do not like the style).
To remove this, simply delete that line and restart your Emacs.
…--
Protesilaos Stavrou
https://protesilaos.com
|
Beta Was this translation helpful? Give feedback.
0 replies
-
😳 Sometimes I don't know if my visual impairment is physical or mental .... |
Beta Was this translation helpful? Give feedback.
0 replies
-
On 2025-02-22 11:20, Quijote Libre wrote:
😳 Sometimes I don't know if my visual impairment is physical or
mental ....
What is certain is that what you mention has worked fine.
Very well!
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that denote inserts the links by reconstructing the title of the note in camel format.
Would it be possible to adjust this format with a variable?
For me, the ideal would be to put the title as it is in the frontmatter.
Beta Was this translation helpful? Give feedback.
All reactions