Skip to content

Commit

Permalink
Change template defcustom to alist, add note
Browse files Browse the repository at this point in the history
  • Loading branch information
bdarcus committed Sep 6, 2021
1 parent 24e29ea commit d713c8d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions bibtex-actions.el
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,15 @@


(defcustom bibtex-actions-template
(cons
"${author editor:30} ${date year issued:4} ${title:48}"
" ${=key= id:15} ${=type=:12} ${tags keywords keywords:*}")
'((main . "${author editor:30} ${date year issued:4} ${title:48}")
(suffix . " ${=key= id:15} ${=type=:12} ${tags keywords keywords:*}")
(note . "Notes on ${author editor}, ${title}"))
"Configures formatting for the bibliographic entry.
car is for the main body of the candidate and cdr is for suffix.
The same string is used for display and for search."
The main and suffix templates are for candidate display, and note
for the title field for new notes."
:group 'bibtex-actions
:type '(cons string string))
:type '(alist :key-type string))

(defcustom bibtex-actions-display-transform-functions
;; TODO change this name, as it might be confusing?
Expand Down

0 comments on commit d713c8d

Please sign in to comment.