Skip to content

Instantly share code, notes, and snippets.

View citar-one-file-for-notes.el
(require 'citar)
(defvar bibtex-note-org-property "Key"
"The org-mode property which BibTeX keys are attached to")
(defun get-first-citar-notes-path ()
"Return 'citar-notes-paths' if it is a string, or its car
if it is a list (as 'citar' normally expects)"
(cond ((stringp citar-notes-paths) citar-notes-paths)
((listp citar-notes-paths) (car citar-notes-paths))
bdarcus / academic.el
Created Nov 29, 2021 — forked from rka97/academic.el
Configuration I use in Doom Emacs as part of my academic reading/notetaking workflow
View academic.el
;; The following packages are needed:
;; 1. elfeed and elfeed-score (available from the rss doom module)
;; 2. citar
;; 3. org-ref
;; 4. org-roam and org-roam-bibtex
(defconst robo/bib-libraries (list "~/bib-lib/robo-lib.bib" "~/bib-lib/robo-temp-lib.bib")) ; All of my bib databases.
(defconst robo/main-bib-library (nth 0 robo/bib-libraries)) ; The main db is always the first
(defconst robo/main-pdfs-library-paths `("~/bib-lib/pdfs/" "/home/robo/bib-lib/temp-pdfs/")) ; PDFs directories in a list
bdarcus /
Created Oct 26, 2021 — forked from gnarf/
git pr - Global .gitconfig aliases for Pull Request Managment


Either copy the aliases from the .gitconfig or run the commands in


Easily checkout local copies of pull requests from remotes:

  • git pr 4 - creates local branch pr/4 from the github upstream(if it exists) or origin remote and checks it out
  • git pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out
bdarcus / org-airmail.el
Last active Sep 2, 2021 — forked from ephsmith/org-airmail.el
org-airmail.el adds an org-hyperlink handler for Airmail email URLs
View org-airmail.el
;;; org-airmail.el - Support for links to Airmail 3 messages in Org
(require 'org)
(org-link-set-parameters "airmail" :follow 'org-airmail-open)
(defun org-airmail-open (url)
"Visit the Airmail message referenced by URL.
URL should be a vaid Airmail message url retrieved from Airmail with
'Copy Message Link'."
View org-roam-configuration.el
;; See
;; for details on this configuration.
;; See
;; for a walk through of the implementation.
;; A Property List of my `org-roam' capture templates.
(setq jnf/org-roam-capture-templates-plist
bdarcus / oc-csl.el
Created Jul 27, 2021 — forked from andras-simonyi/oc-csl.el
A patched version of oc-csl which supports a larger set of citation modes and variants plus adds biblatex support
View oc-csl.el
;;; oc-csl.el --- csl citation processor for Org -*- lexical-binding: t; -*-
;; Copyright (C) 2021 Free Software Foundation, Inc.
;; Author: Nicolas Goaziou <>
;; 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 of the License, or
;; (at your option) any later version.
bdarcus / config
Created May 2, 2021 — forked from pksunkara/config
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
View config
name = Pavan Kumar Sunkara
email =
username = pksunkara
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
smtpencryption = tls
bdarcus / saxon
Created Jun 5, 2020 — forked from dirkk/saxon
Saxon bash script
View saxon
#!/usr/bin/env bash
# Core and library classes
# CP="$SAXON/saxon9he.jar"
CP="$CP$(for JAR in "$SAXON"/*.jar; do echo -n ":$JAR"; done)"
# Options for virtual machine
bdarcus /
Last active Mar 3, 2020 — forked from burningTyger/
Install Arch
# This guide is based on
# compare for more details on each step. It's a great guide and seems to get frequent updates.
# This guide has a few changes that helped me to get thew bootloader running
# create an ENV variable for your drive and hostname.
# You need to edit this line!!!

Converting my bibliography file to roam format

[2020-02-18 Tue]

I use this function to create a note file from a bibtex entry (the point is on the bibtex entry).

;;** Open notes from bibtex entry
(defun aah/org-ref-open-bibtex-notes ()
  "From a bibtex entry, open the notes if they exist.