Skip to content

Instantly share code, notes, and snippets.

View minkkinen's full-sized avatar

Matti Minkkinen minkkinen

View GitHub Profile
#!/usr/bin/env python
# Pandoc filter to convert inline HTML comments to LaTeX todos
# Requires panflute (if you don't have it, do "pip install panflute")
# Also requires the todonotes LaTeX package, see https://www.ctan.org/pkg/todonotes
# When prerequisites are installed, use pandoc option "--filter ./pandoc_comments_to_todo.py"
# (adjusting the filter directory if necessary)
import panflute as pf
import re
@minkkinen
minkkinen / org-ref-recoll.el
Created November 25, 2016 06:18
Make a recoll search through org-ref, early version
(defun mmin-recoll-to-list (query)
(interactive "sSearch: ")
(let ((results
(split-string
(shell-command-to-string
(concat "recoll -t -b "
query))
"\n")))
(mapcar 'file-name-base results)))