When I run bibtex-fill-entry
it formats the current entry block where the cursor is at. Note that bibtex-fill-entry (C-c C-q) Fill current BibTeX entry
. So I have to traverse all the entries to align them one by one which is time consuming.
Instead I want to apply bibtex-fill-entry
for all fields in the bibtex buffer, after each save after-save-hook
.
How can I apply bibtex-fill-entry
to entire buffer (all the entries)?
Here cursor is at the beginning of the title = {Clique},
line. When I do M-x bibtex-fill-entry
it only aligns the first entry. I also want to align second entry (considering all entries in the buffer).
@electronic{clique,
title = {Clique},
url = {https://github.com/ethereum/EIPs/issues/225/},
}
@electronic{geth,
title = {Geth},
url = {https://github.com/ethereum/go-ethereum/wiki/geth/},
}
bibtex-fill-entry
and thenbibtex-next-entry
to get to the next one. Then you can repeat the keyboard macro say 1000 times to do all of them. However, in my experimentM-}
which is bound tobibtex-next-entry
does not seem to do anything, but you might want to see if it works for you (I didn't try very hard to make it work).M-}
- see answer.