forked from purcell/emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
chens
committed
Nov 18, 2024
1 parent
c61dfe7
commit 52e19ab
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
;;; init-citar.el --- citar -*- lexical-binding: t -*- | ||
|
||
;; Copyright (C) 2024 chens | ||
;; | ||
;; Version: 0.0.1 | ||
;; Keywords: citar | ||
;; Author: chens | ||
;; Package-Requires: ((emacs "24.4")) | ||
|
||
;; This file is NOT part of GNU Emacs. | ||
|
||
;; This program is free software; you can redistribute it and/or modify | ||
;; it under the terms of the GNU General Public License as published by | ||
;; the Free Software Foundation; either version 3, or (at your option) | ||
;; any later version. | ||
|
||
;; This program is distributed in the hope that it will be useful, | ||
;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
;; GNU General Public License for more details. | ||
|
||
;; You should have received a copy of the GNU General Public License | ||
;; along with this program; if not, write to the Free Software | ||
;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
|
||
;;; Commentary: | ||
|
||
;; | ||
|
||
;;; Code: | ||
|
||
(use-package citar | ||
:custom | ||
(org-cite-insert-processor 'citar) | ||
(org-cite-follow-processor 'citar) | ||
(org-cite-activate-processor 'citar) | ||
(citar-bibliography org-cite-global-bibliography) | ||
;; optional: org-cite-insert is also bound to C-c C-x C-@ | ||
:hook | ||
(LaTeX-mode . citar-capf-setup) | ||
(org-mode . citar-capf-setup) | ||
:bind | ||
(:map org-mode-map :package org ("C-c b" . #'org-cite-insert))) | ||
|
||
|
||
(use-package citar-embark | ||
:after citar embark | ||
:no-require | ||
:config | ||
(citar-embark-mode) | ||
(setq citar-at-point-function 'embark-act)) | ||
|
||
(provide 'init-citar) | ||
;;; init-citar.el ends here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters