Skip to content

Instantly share code, notes, and snippets.

;;; Patching Citar
;; Prerequisites
(require 'org)
(require 'ol-bibtex)
(require 'citeproc-bibtex)
(require 'citar)
;; Make org-bibtex work with biblatex fields, not needed for BibTeX
(setq org-bibtex-export-arbitrary-fields t
(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))
@vherrmann
vherrmann / doct-org-roam.el
Last active April 21, 2024 00:00 — forked from progfolio/doct-org-roam.el
doct-org-roam.el
;;; doct-org-roam.el --- An org-roam extension for doct
;; Copyright (C) 2020 Nicholas Vollmer
;; Copyright (C) 2022 Valentin Herrmann
;; Author: Nicholas Vollmer <progfolio@protonmail.com>
;; URL: https://github.com/vherrmann/doct-org-roam
;; Created: July 27, 2020
;; Keywords: org, org-roam, convenience
;; Package-Requires: ((emacs "26.1"))
;; Version: 0.0.0
@rka97
rka97 / academic.el
Created November 24, 2021 16:11
Configuration I use in Doom Emacs as part of my academic reading/notetaking workflow
;; 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
@jeremyf
jeremyf / org-roam-configuration.el
Last active May 30, 2022 06:30
org-roam configuration
;; See
;; http://takeonrules.com/2021/08/22/ever-further-refinements-of-org-roam-usage/
;; for details on this configuration.
;;
;; See https://takeonrules.com/2021/08/23/diving-into-the-implementation-of-subject-menus-for-org-roam/
;; for a walk through of the implementation.
;;
;; A Property List of my `org-roam' capture templates.
(setq jnf/org-roam-capture-templates-plist
(list
@PatrickLang
PatrickLang / Fedora_33_notes.md
Last active March 4, 2023 19:59
Fedora 33 Notes

This is just a few things I'll probably forget later

Dual boot with encryption & hibernation

  1. Disable secure boot in BIOS if you want hibernation in Linux
  2. Shrink Windows partition using diskmgmt.msc
  3. Boot off Fedora live ISO
  4. Choose install, do manual partitioning with blivet
  • Mount existing EFI partition at /boot/efi
  • Create /boot partition
@TheCedarPrince
TheCedarPrince / init.vim
Last active November 17, 2022 09:28
My (neo)Vim Configuration File
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" VIM SETTINGS
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" TURNS LINE NUMBERING ON
set nu
" TRIGGER `autoread` WHEN FILES CHANGES ON DISK
set autoread
autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * if mode() != 'c' | checktime | endif
@mnarayan
mnarayan / awesome-beamer.md
Last active April 12, 2023 11:39
Modern Beamer Templates
@jethrokuan
jethrokuan / convert.sh
Created April 1, 2020 05:08
Roam Export to Org-roam
find ./ -iname "*.md" -type f -exec sh -c 'pandoc "${0}" -o "${0%.md}.org"' {} \;
rm *.md
find ./ -iname "*.org" -type f -exec sh -c 'sed -i -E "s/\[\[(.*)\]\]/\[\[file:\1.org]\[\1\]\]/" "${0}"' {} \;

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
;;;###autoload
(defun aah/org-ref-open-bibtex-notes ()
  "From a bibtex entry, open the notes if they exist.