diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-10-31 12:04:13 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-11-01 01:22:53 -0400 |
commit | 794f943564f5676bbae425e1ddf7e67ec95955e2 (patch) | |
tree | e360562c8049bd69cdfff7215037b8968539c41f /bog.el | |
parent | ce3edaf2d13eed514d27bece505519496258146a (diff) | |
download | bog-794f943564f5676bbae425e1ddf7e67ec95955e2.tar.gz |
bog-citekey-from-property: Cosmetic changes
Diffstat (limited to 'bog.el')
-rw-r--r-- | bog.el | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -285,9 +285,8 @@ be preceded by a characters in `bog-allowed-before-citekey'." it))) (defun bog-citekey-from-property () - (-when-let (prop (org-entry-get (point) bog-citekey-property)) - (when (bog-citekey-p prop) - prop))) + (--when-let (org-entry-get (point) bog-citekey-property) + (when (bog-citekey-p it) it))) (defun bog-citekey-p (text) (when (string-match-p (format "^%s$" bog-citekey-format) text) |