Skip to content

Instantly share code, notes, and snippets.

View vermiculus's full-sized avatar
🙃
I may be slow to respond.

Sean Allred vermiculus

🙃
I may be slow to respond.
View GitHub Profile
(defun TeX-find-texdoc (texdoc-query)
(interactive "sPackage: ")
(if (string-equal texdoc-query "")
(error "Cannot query texdoc against an empty string")
(let ((texdoc-output (shell-command-to-string
(concat "texdoc -l -M "
texdoc-query))))
(if (string-match "no documentation found" texdoc-output)
(error "Sorry, no documentation found for %s" texdoc-query)
(let ((texdoc-file (nth 2 (split-string texdoc-output))))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(ag-arguments (quote ("--skip-vcs-ignores" "--path-to-agignore=\"~/tcs/.agignore\"" "--line-number" "--smart-case" "--nogroup" "--column" "--")))
'(ag-highlight-search t)
'(c-basic-offset (quote set-from-style))
'(c-default-style (quote ((c-mode . "gd-ais") (c++-mode . "gd-ais") (java-mode . "java") (awk-mode . "awk") (other . "gnu"))))
'(c-mode-common-hook (quote (doxymacs-mode add-c-syntax-highlighting)))
; (defface font-lock-warning-face
; '((t :inherit error))
; "Font Lock mode face used to highlight warnings."
; :group 'font-lock-faces)
(defface my-code-section-face
'((t :inherit error))
"Face used for comment guards")
(defun add-c-syntax-highlighting ()
(font-lock-add-keywords nil '(
*~
\#*\#
.\#*
\documentclass{article}
\usepackage{xcolor,ifthen}
\newcounter{tmpcounter}
\newlength\cumlength
\newlength\critlength
\newlength\tmplength
\newcount\mynum
\newcount\myden
\makeatletter
\newcommand\FadeAfter[2]{\critlength=#1\relax\cumlength=0pt\relax%
@vermiculus
vermiculus / lcr.tex
Last active November 24, 2015 20:10
\documentclass{report}
\makeatletter
\def\lcr@@set#1{\lcr@@@set{#1}}
\long\def\lcr@@@set#1#2{%
\expandafter\def\csname lcr@#1\endcsname{#2}}
\def\lcr@@get#1{\csname lcr@#1\endcsname}
\def\lcr@@new@format#1#2{%
\expandafter\def\csname #1Format\endcsname{#2}
\expandafter\def\csname #1\endcsname##1{%
\begingroup\csname #1Format\endcsname##1\endgroup}}
// -*- compile-command: "g++ -std=c++0x main.cpp;./a.out" -*-
#include <iostream>
#include <thread>
#include <map>
#include <unistd.h>
typedef char status_t;
/**
* I know I'm not supposed to be using system, but I don't know what
test
test
test
#!/usr/bin/env bash
# Usage:
#
# git-unite "User Name" "[email protected]" \
# "[email protected]" \
# "[email protected]" \
# ...
name="$1"
\documentclass{mla}
\title{My Title}
\author{Lily Wolford}
\date{2 September 2014}
\class{Speech 103-03}
\professor{Dr. Melinda May}
% hyphenate right margin
\RaggedRight