Skip to content

Instantly share code, notes, and snippets.

Anders Johansson andersjohansson

  • Sweden
Block or report user

Report or block andersjohansson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
andersjohansson /
Last active Apr 12, 2016
Some functions for grading student papers in Emacs with org-mode

Grading table

Smith, Joan10ASmith_Joan
Smith, John7BSmith_Johan


andersjohansson / emacs-zotero-bib-fetch.el
Created Mar 31, 2016
Emacs-zotero-bib-fetch: fork of zotelo to use better-bibtex's pull export
View emacs-zotero-bib-fetch.el
;;; emacs-zotero-bib-fetch.el --- Manage Zotero collections from emacs
;; Filename: emacs-zotero-bib-fetch.el
;; Author: Anders Johansson, based on zotelo by Spinu Vitalie
;; Maintainer: Anders Johansson
;; Copyright (C) 2011-2014, Anders Johansson and Spinu Vitalie
;; Created: 1 Jul 2014
;; Version: 1.2
;; URL:
;; Keywords: zotero, emacs, reftex, bibtex, bibliography manager
andersjohansson / effective-config.log
Last active Mar 9, 2016
Log output from mopidy, slow startup, loading spotify playlists
View effective-config.log
cache_dir = $XDG_CACHE_DIR/mopidy
config_dir = $XDG_CONFIG_DIR/mopidy
data_dir = $XDG_DATA_DIR/mopidy
max_tracklist_length = 10000
color = true
console_format = %(levelname)-8s %(message)s
debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s
View org-mode-inline-comments.el
;;; Exporting
(add-hook 'org-export-before-parsing-hook #'aj/ox-inline-comment)
(defun aj/ox-inline-comment (backend)
(when (member backend '(latex odt))
(goto-char (point-min))
(while (search-forward-regexp
"\\(?3:\\[[^\]]+\\] \\)?\\(?1:[^❱❙]+\\)\\(?:❙\\(?3:\\[[^\]]+\\] \\)?\\(?2:[^❱]+\\)\\)?❱"
nil t)
View helm-org-clock-select-task.el
(advice-add 'org-clock-select-task :override #'aj/helm-org-clock-select-task)
(defun aj/helm-org-clock-select-task (&optional prompt)
"Select a task that was recently associated with clocking."
;; TODO sources for these
;; (when (marker-buffer org-clock-default-task)
;; (insert (org-add-props "Default Task\n" nil 'face 'bold))
;; (setq s (org-clock-insert-selection-line ?d org-clock-default-task))
andersjohansson / aj-org-zotxt-configuration.el
Last active Sep 16, 2018
Using org-zotxt with working export to odt scannable by odf/rdf scan ( and using pandoc cite-syntax. This depends on org-pdcite ( I use it with extended allowed characters, this branch: BibLaT…
View aj-org-zotxt-configuration.el
(require 'org-zotxt)
(require 'org-pdcite)
(setq org-zotxt-link-description-style :betterbibtexkey)
(lambda (rest)
(zotxt-select-key (substring rest 15)))
You can’t perform that action at this time.