This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; (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 '( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*~ | |
\#*\# | |
.\#* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\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% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\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}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -*- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test | |
test | |
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Usage: | |
# | |
# git-unite "User Name" "[email protected]" \ | |
# "[email protected]" \ | |
# "[email protected]" \ | |
# ... | |
name="$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{mla} | |
\title{My Title} | |
\author{Lily Wolford} | |
\date{2 September 2014} | |
\class{Speech 103-03} | |
\professor{Dr. Melinda May} | |
% hyphenate right margin | |
\RaggedRight |