aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2019-06-16 20:29:31 -0400
committerRyan Kavanagh <rak@debian.org>2019-06-16 20:29:31 -0400
commitf3f100643563abd430d9813dcb69f177daea6b00 (patch)
tree918ac087bd7b9bcdd5d89c5c093a959cba78378e
parentdefault reftex emacs (diff)
simplify org-ref config
-rw-r--r--.emacs42
1 files changed, 1 insertions, 41 deletions
diff --git a/.emacs b/.emacs
index 3e6c001..736f138 100644
--- a/.emacs
+++ b/.emacs
@@ -350,52 +350,12 @@ Otherwise split the current paragraph into one sentence per line."
(org-agenda-include-diary t))
(use-package org-ref
- :init
- (defun rak-xah-asciify-string (string)
- "Remove accents in some letters and some Change European
-language characters into equivalent ASCII ones, e.g. 'café' =>
-'cafe'. When called interactively, work on current line or text
-selection.
-
-Based off of xah-asciify-text, version 2018-11-12, from
-URL `http://ergoemacs.org/emacs/emacs_zap_gremlins.html'."
- (interactive)
- (let ((charMap
- [
- ["ß" "ss"]
- ["á\\|à\\|â\\|ä\\|ā\\|ǎ\\|ã\\|å\\|ą\\|ă\\|ạ\\|ả\\|ả\\|ấ\\|ầ\\|ẩ\\|ẫ\\|ậ\\|ắ\\|ằ\\|ẳ\\|ặ" "a"]
- ["æ" "ae"]
- ["ç\\|č\\|ć" "c"]
- ["é\\|è\\|ê\\|ë\\|ē\\|ě\\|ę\\|ẹ\\|ẻ\\|ẽ\\|ế\\|ề\\|ể\\|ễ\\|ệ" "e"]
- ["í\\|ì\\|î\\|ï\\|ī\\|ǐ\\|ỉ\\|ị" "i"]
- ["ñ\\|ň\\|ń" "n"]
- ["ó\\|ò\\|ô\\|ö\\|õ\\|ǒ\\|ø\\|ō\\|ồ\\|ơ\\|ọ\\|ỏ\\|ố\\|ổ\\|ỗ\\|ộ\\|ớ\\|ờ\\|ở\\|ợ" "o"]
- ["ú\\|ù\\|û\\|ü\\|ū\\|ũ\\|ư\\|ụ\\|ủ\\|ứ\\|ừ\\|ử\\|ữ\\|ự" "u"]
- ["ý\\|ÿ\\|ỳ\\|ỷ\\|ỹ" "y"]
- ["þ" "th"]
- ["ď\\|ð\\|đ" "d"]
- ["ĩ" "i"]
- ["ľ\\|ĺ\\|ł" "l"]
- ["ř\\|ŕ" "r"]
- ["š\\|ś" "s"]
- ["ť" "t"]
- ["ž\\|ź\\|ż" "z"]
- ["œ" "oe"]
- [" " " "] ; thin space etc
- ["–" "-"] ; dash
- ["—\\|一" "--"] ; em dash etc
- ])
- (case-fold-search t))
- (reduce (lambda (string pair)
- (replace-regexp-in-string (elt pair 0) (elt pair 1) string))
- charMap
- :initial-value string)))
:custom
(org-ref-default-bibliography '("~/Documents/papers/library.bib"))
(org-ref-bibliography-notes "~/Documents/papers/notes.org")
(org-ref-pdf-directory "~/Documents/papers/pdfs/")
;; don't fudge with the output of bibtex-generate-autokey
- (org-ref-clean-bibtex-key-function 'rak-xah-asciify-string))
+ (org-ref-clean-bibtex-key-function 'identity))
(use-package org-ref-arxiv
:ensure org-ref)