Skip to content

Instantly share code, notes, and snippets.

View milkypostman's full-sized avatar
🏠
zzz

Donald Curtis milkypostman

🏠
zzz
View GitHub Profile
@milkypostman
milkypostman / markdown-mode+.el
Created October 27, 2011 20:10
markdown-mode additional functions.
(defun markdown-copy-html ()
"process file with multimarkdown and save it accordingly"
(interactive)
(save-window-excursion
(flet ((markdown-output-standalone-p () t))
(markdown))
(kill-ring-save (point-min) (point-max))))
(defun markdown-copy-rtf ()
"render and copy as RTF"
@milkypostman
milkypostman / gist:1590067
Created January 10, 2012 17:13
weirdness?

Oh, No!

I'm afraid /keybinding-madness/#comment-19945 doesn't exist on brettterpstra.com. If it was here, and now isn't, that's my bad. I promise I'll make it up to you. Still friends?

Would any of these help?

  • [KeyBinding madness][2]
  • [A little KeyBinding sanity][3]
@milkypostman
milkypostman / gist:1679158
Created January 25, 2012 22:12
melba package line
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
@milkypostman
milkypostman / gist:1679208
Created January 25, 2012 22:17
Fix for HTTP Keep-Alive in Emacs
(setq url-http-attempt-keepalives nil)
@milkypostman
milkypostman / gist:1679232
Created January 25, 2012 22:20
Emacs package.el fixes.
(defadvice package-compute-transaction
(before
package-compute-transaction-reverse (package-list requirements)
activate compile)
"reverse the requirements"
(setq requirements (reverse requirements))
(print requirements))
(defadvice package-download-tar
(after package-download-tar-initialize activate compile)
(defun package-build-pkg-file (pkg-file pkg-info)
"Write PKG-FILE containing PKG-INFO."
(package-build-dump
`(define-package
,(aref pkg-info 0)
,(aref pkg-info 3)
,(aref pkg-info 2)
,(mapcar
(lambda (elt)
(list (car elt)
@milkypostman
milkypostman / gist:1817124
Created February 13, 2012 13:58
wtf zsh?
*** glibc detected *** -zsh: malloc(): smallbin double linked list corrupted: 0x098d7de0 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0xb76a9591]
/lib/tls/i686/cmov/libc.so.6(+0x6e710)[0xb76ac710]
/lib/tls/i686/cmov/libc.so.6(__libc_malloc+0x5c)[0xb76adf9c]
-zsh(zalloc+0x24)[0x808eb74]
-zsh(pushheap+0x34)[0x808ec84]
-zsh(execfor+0x142)[0x808b7c2]
-zsh[0x806c756]
-zsh[0x806d75f]
@milkypostman
milkypostman / molokai-theme.el
Created March 13, 2012 14:18
emacs24 port of the molokai theme for vim
(deftheme molokai
"emacs24 port of molokai for vim")
(custom-theme-set-faces
'molokai
'(cursor ((t (:background "#f8f8f0"))))
'(font-lock-builtin-face ((t (:foreground "#ae81ff"))))
'(font-lock-function-name-face ((t (:foreground "#a6e22e"))))
'(font-lock-type-face ((t (:foreground "#66d9ef"))))
'(font-lock-warning-face ((t (:inherit error))))
@milkypostman
milkypostman / ir_black-theme.el
Created March 13, 2012 14:14
ir_black theme for emacs24
(deftheme ir_black
"The last emacs24 theme you'll ever need.")
(custom-theme-set-faces
'ir_black
'(cursor ((t (:background "#ffa560"))))
'(mode-line ((t (:background "#202020" :foreground "#9c9c9c" :box nil :slant italic :height 0.9))))
'(mode-line-inactive ((t (:background "#202020" :foreground "#4a4a4a" :box nil :slant normal))))
'(font-lock-builtin-face ((t (:foreground "#96cbfe"))))
'(font-lock-regexp-grouping-construct ((t (:inherit bold :foreground "#e9c062"))))
@milkypostman
milkypostman / aquaterm.rb
Created May 24, 2012 15:00
AquaTerm Formula Supporting HEAD
require 'formula'
class Aquaterm <Formula
url 'http://sourceforge.net/projects/aquaterm/files/AquaTerm/v1.0.1/aquaterm_src.1.0.1.tar.gz/download'
homepage 'http://aquaterm.sourceforge.net/'
md5 'e9d3ecdfe770d6f09a748add9886d1a9'
version '1.0.1'
head 'git://aquaterm.git.sourceforge.net/gitroot/aquaterm/aquaterm'
def install