Skip to content

Instantly share code, notes, and snippets.

View milkypostman's full-sized avatar
🏠
zzz

Donald Curtis milkypostman

🏠
zzz
View GitHub Profile
(defun save-region-or-current-line (arg)
(interactive "P")
(if (region-active-p)
(kill-ring-save (region-beginning) (region-end))
(copy-line arg)))
#!/usr/bin/env python
import os
import py_compile
import shutil
import stat
import sys
import zipfile
Modified flycheck.el
diff --git a/flycheck.el b/flycheck.el
index 5cec74d..aff2d48 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -236,7 +236,7 @@ overlay setup)."
"---"
["Describe syntax checker" flycheck-describe-checker t]
["Read the Flycheck manual" flycheck-info t])
- "Spell Checking")
def test(x):
if x > 5:
print x-5
else:
print x
if x < 0:
print "less than zero"
if __name__ == "__main__":
@milkypostman
milkypostman / badwolf-theme.el
Created November 10, 2014 17:51
badwolf theme attempt
;;; badwolf-theme.el --- Emacs 24 theme with a dark background.
;; Copyright (C) 2014 , d@milkbox.net
;; Author: d@milkbox.net
;;
;; Version: 0.1
;; Package-Requires: ((emacs "24"))
;; Created with emacs-theme-generator, https://github.com/mswift42/theme-creator.
(require 'package)
(setq package-user-dir "~/.emacs.d/elpa/")
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(setq package-archive-exclude-alist '(("melpa" paredit)))
(package-initialize)
(defmacro require! (package)
@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
@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 / 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))))