Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block lawlist

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
abo-abo / org-agenda-quick-jump
Created Jul 20, 2013
org-mode agenda quick month/year selection with hjkl and 0-9.
View org-agenda-quick-jump
(defvar lawlist-month)
(defvar lawlist-year nil)
(defun lawlist-org-agenda-view-mode-dispatch ()
"Select the month in agenda view."
(message "View: [1-9] [o]CT [n]OV [d]EC, j(next), k(prev).")
(let* ((a (read-char-exclusive))
(year (or lawlist-year
(setq lawlist-year
bjmorgan / Bibtex.sublime-build
Created Dec 20, 2012 — forked from dpo/BibTeX.sublime-build
Build files, keymap entries, and `` plugin for adding the option for running bibtex and cleaning up auxiliary files for LaTeX in Sublime Text 2. Added the ability to run bibtex, and changed key bindings.
View Bibtex.sublime-build
"cmd": ["bibtex", "$file_base_name"],
"path": "$PATH:/usr/texbin:/usr/local/bin",
"file_regex": "^(...*?):([0-9]+): ([0-9]*)([^\\.]+)",
"selector": "text.tex.latex"
dpo / BibTeX.sublime-build
Last active Jul 26, 2017
Sublime build definition to clean up auxiliary LaTeX files. CleanLatexFiles.sublime-build is taken from Other files are adapted from various sources. Place all files in Packages/User/
View BibTeX.sublime-build
"cmd": ["bibtex", "$project_path/$project_base_name"],
"working_dir": "$project_path",
"path": "$PATH:/usr/texbin:/usr/local/bin",
"file_regex": "^(...*?):([0-9]+): ([0-9]*)([^\\.]+)",
"selector": "text.tex.latex"
dougalsutherland /
Last active Oct 17, 2019
A bash script to clean latex temp files
# Note: you might prefer latexmk -c since latexmk is great. It doesn't clean all of these, but see
exts=".aux .lof .log .lot .fls .out .toc .dvi .bbl .bcf .blg -blx.aux -blx.bib -blx.bib .run.xml .fdb_latexmk .synctex.gz .syntex.gz(busy) .pdfsync .algorithms .alg .loa .thm .nav .snm .vrb .acn .acr .glg .glo .gls .brf .lol .idx .ilg .ind .ist .maf .mtc .mtc0 .pyg .nlo .tdo .xdy .keys"
for x in "${@:-.}"; do
arg=$(echo ${x:-.} | perl -pe 's/\.(tex|pdf)$//')
ieure / tiling
Created Mar 17, 2009
Code to handle centering and tiling of Emacs frames
View tiling
;; Functions to work with frames
(provide 'ime-frame)
(defun screen-usable-height (&optional display)
"Return the usable height of the display.
Some window-systems have portions of the screen which Emacs
cannot address. This function should return the height of the
screen, minus anything which is not usable."
You can’t perform that action at this time.