Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Victor Stoichita
emacs-config
Commits
1f65b392
Commit
1f65b392
authored
Nov 29, 2020
by
Victor A. Stoichiţă
Browse files
add noter property to reading list template
parent
a7034cb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
bib_init.el
View file @
1f65b392
...
...
@@ -71,7 +71,7 @@
(
setq
ebib-file-associations
'
((
"docx"
.
"soffice"
)
(
"odt"
.
"soffice"
)(
"doc"
.
"soffice"
)))
(
setq
ebib-reading-list-file
"~/bib/ReadingList.org"
ebib-reading-list-todo-marker
"LIRE"
ebib-reading-list-template
"* %T :lire:\n:PROPERTIES:\n%K\n:END:\n%L\n"
)
ebib-reading-list-template
"*
%M
%T :lire:\n:PROPERTIES:\n%K\n
%N\n
:END:\n%L\n"
)
(
defun
vic/ebib-author-year-title-description
(
key
db
)
"Provide an author/year + title description for an Org Ebib link.
...
...
@@ -90,6 +90,10 @@ database that contains the entry."
;; %N specifier: Org noter
'
(
78
.
vic/ebib-create-org-noter-id
))
(
add-to-list
'ebib-reading-list-template-specifiers
;; %N specifier: Org noter
'
(
78
.
vic/ebib-create-org-noter-id
))
(
add-to-list
'ebib-notes-template-specifiers
;; %G specifier: tags
'
(
71
.
vic/ebib-create-note-tags
))
...
...
site-lisp/vic-bib-functions.el
View file @
1f65b392
...
...
@@ -69,7 +69,7 @@ Version 2015-06-08"
(
defun
vic/ebib-create-org-noter-id
(
key
db
)
"Create an org-noter property linking to the first pdf file in entry KEY in DB. If an annotated file exists according to `vic/pdf-annotated-filename-regexp' it is preferred. If `file' is empty or has no pdf file, return the empty string."
(
let
((
files-with-props
(
ebib-get-field-value
"file"
key
db
'noerror
'unbraced
'xref
))
(
noter-property
org-noter-property-doc-file
)
(
noter-property
org-noter-property-doc-file
)
(
pdf-ext
"\.pdf$"
)
(
annotated
vic/pdf-annotated-filename-regexp
)
(
file
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment