-
Hi! I just started using |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The solution would be to write a new function, similar to If I find time, I'll try to do that and update this and put it on the wiki. Or, of course, feel free to play around with it; it's the way to learn ;-) |
Beta Was this translation helpful? Give feedback.
-
Thank you for the tip. I'm happy about my first legit customization to my emacs. I'll share what I did in case its useful to anyone else. edit: added response from below so its correct here. I defined this function in my (defun ws.refs/prettify-author-names (names)
"Makes list of author names prettier for viewing in citar"
(let ((short-names (split-string (citar-shorten-names names) ", ")))
(if (< 2 (length short-names))
(concat (car short-names) " et al.")
(string-join short-names " and ")))) and I set (setq citar-display-transform-functions
'((t . citar-clean-string)
(("author") . ws.refs/prettify-author-names))) |
Beta Was this translation helpful? Give feedback.
Thank you for the tip. I'm happy about my first legit customization to my emacs. I'll share what I did in case its useful to anyone else.
edit: added response from below so its correct here.
I defined this function in my
config.el
and I set
citar-display-transform-functions
in myconfig.el
like this