Part of a series of examples. See:
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 save-region-or-current-line (arg) | |
(interactive "P") | |
(if (region-active-p) | |
(kill-ring-save (region-beginning) (region-end)) | |
(copy-line arg))) | |
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 python | |
import os | |
import py_compile | |
import shutil | |
import stat | |
import sys | |
import zipfile | |
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
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") |
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
def test(x): | |
if x > 5: | |
print x-5 | |
else: | |
print x | |
if x < 0: | |
print "less than zero" | |
if __name__ == "__main__": |
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
;;; 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. |
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
(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) |
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
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 |
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
(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")))) |
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
(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)))) |