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
(defadvice mml2015-sign (after mml2015-sign-rename (cont) act) | |
(save-excursion | |
(search-backward "Content-Type: application/pgp-signature") | |
(goto-char (point-at-eol)) | |
(insert "; name=\"signature.asc\""))) |
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
(defadvice gnus-topic-insert-topic-line | |
(around gnus-hide-top-topic (name visiblep shownp level entries &optional unread) act) | |
(unless (string= name "Gnus") | |
(let ((level (1- level))) | |
ad-do-it))) |
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
#!/bin/zsh | |
tempdir=$(mktemp -d) || exit | |
in_pipe="$tempdir/in_pipe" | |
out_pipe="$tempdir/out_pipe" | |
pipe="$1" | |
shift | |
function cleanUp() { | |
rm -rf -- "$tempdir" |
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
/* | |
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. | |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
* | |
* This code is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU General Public License version 2 only, as | |
* published by the Free Software Foundation. Oracle designates this | |
* particular file as subject to the "Classpath" exception as provided | |
* by Oracle in the LICENSE file that accompanied this code. | |
* |
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
(let ((buffer (url-retrieve-synchronously | |
"https://gist.github.com/sigma/1884092/raw/9014a209f2fc5c8d31762d13ec495d9e92a412de/package-install.el"))) | |
(save-excursion | |
(set-buffer buffer) | |
(goto-char (point-min)) | |
(re-search-forward "^$" nil 'move) | |
(let ((user-init-file (expand-file-name "~/.emacs"))) | |
(eval-region (point) (point-max))) | |
(kill-buffer (current-buffer)))) |
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
;;; package-install.el --- auto-installer for package.el | |
;; Copyright (C) 2007, 2008 Tom Tromey <[email protected]> | |
;; Copyright (C) 2007, 2012 Yann Hodique <[email protected]> | |
;; This file is not (yet) part of GNU Emacs. | |
;; However, it is distributed under the same license. | |
;; GNU Emacs is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by |
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
;;; package.el --- Simple package system for Emacs | |
;; Copyright (C) 2007-2011 Free Software Foundation, Inc. | |
;; Author: Tom Tromey <[email protected]> | |
;; Created: 10 Mar 2007 | |
;; Version: 0.9 | |
;; Keywords: tools | |
;; This file is part of GNU Emacs. |
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/zsh | |
# I organize my projects by vcs / project | |
# e.g. Projects/git/magit or Projects/hg/marmalade | |
# every project gets its named directory: ~magit or ~marmalade | |
for proj in ~/Projects/*/*(-/); do | |
hash -d ${proj##*/}=${proj}; | |
done |
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
Xft.dpi: 96 | |
Xft.hinting: true | |
Xft.hintstyle: hintslight | |
Xft.antialias: true | |
Xft.rgba: rgb | |
Xft.lcdfilter: lcddefault |