Skip to content

Instantly share code, notes, and snippets.

@rfkm
rfkm / alt-emacs.sh
Last active November 22, 2016 14:28
#!/bin/bash -e
EMACS=${EMACS:-"open /Applications/Emacs.app -n --args"}
if [ $# != 1 ]; then
echo "Usage: alt-emacs </path/to/.emacs.d>" 1>&2
exit 1
fi
if [[ "$1" == */ ]]; then
(defun orig/cider-repl--emit-output-at-pos (buffer string output-face position &optional bol)
"Using BUFFER, insert STRING (applying to it OUTPUT-FACE) at POSITION.
If BOL is non-nil insert at the beginning of line."
(with-current-buffer buffer
(save-excursion
(cider-save-marker cider-repl-output-start
(cider-save-marker cider-repl-output-end
(goto-char position)
;; TODO: Review the need for bol
(when (and bol (not (bolp))) (insert-before-markers "\n"))
diff -N -p ../emacs-24.0.97/configure.ac ./configure.ac
*** ../emacs--git/configure.ac 2013-02-26 05:31:03.000000000 +0900
--- ./configure.ac 2013-02-26 05:18:46.000000000 +0900
*************** if test "${HAVE_NS}" = yes; then
*** 1603,1609 ****
leimdir="\${ns_appresdir}/leim"
INSTALL_ARCH_INDEP_EXTRA=
fi
! NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o"
fi
@rfkm
rfkm / el-get-emacswiki-elisp-file-list.txt
Created February 27, 2013 04:34
emacswiki elisp file list
.durdn.office.el ;;;
.emacs-AndyStewart.el ;;;
.emacs-ChristianRovner.el ;;; Emacs init file for Christian Rovner -*- coding: utf-8 -*-
.emacs-DominiqueQuatravaux.el ;;; .emacs-DominiqueQuatravaux.el - Le .emacs de Dominique Quatravaux, en français !
.emacs-IzaakBeekman.el ;;;
.emacs-ViniciusJoseLatorre.el ;;; .emacs --- Minimal Emacs initialization file
.emacs-planner-thierry.el ;;; .emacs-planner.el -- configuration planner, muse, remember pour laptop thierry
1000-words.el ;;; 1000-words.el -- limit yourself to the most common words while writing
1040tt.el ;;; 1040tt.el --- U.S. tax calculator for form 1040 filers
123-menu.el ;;; 123-menu.el --- Simple menuing system, reminiscent of Lotus 123 in DOS
@rfkm
rfkm / nginx.rb
Created September 10, 2012 15:16
[Homebrew] nginx w/external modules
require 'formula'
class Nginx < Formula
homepage 'http://nginx.org/'
url 'http://nginx.org/download/nginx-1.2.3.tar.gz'
sha1 '98059ae08ebbfaaead868128f7b66ebce16be9af'
devel do
url 'http://nginx.org/download/nginx-1.3.5.tar.gz'
Debugger entered--Lisp error: (error "Candidates must either be a function, a variable or a list: (lambda nil (let ((all (helm-comp-read-get-candidates history test nil nil))) (delete (helm-fast-remove-dups (if (and default (not (string= default ))) (delq nil (cons default (delete default all))) all) :test (quote equal)))))")
signal(error ("Candidates must either be a function, a variable or a list: (lambda nil (let ((all (helm-comp-read-get-candidates history test nil nil))) (delete (helm-fast-remove-dups (if (and default (not (string= default ))) (delq nil (cons default (delete default all))) all) :test (quote equal)))))"))
error("Candidates must either be a function, a variable or a list: %s" (lambda nil (let ((all (helm-comp-read-get-candidates history test nil nil))) (delete "" (helm-fast-remove-dups (if (and default (not (string= default ""))) (delq nil (cons default (delete default all))) all) :test (quote equal))))))
(lambda nil (error (concat "Candidates must either be a function, " " a va
@rfkm
rfkm / emacs.rb
Last active May 3, 2016 01:58
Emacs24.4 Formula with inline-patch
require "formula"
class Emacs < Formula
homepage "https://www.gnu.org/software/emacs/"
stable do
url "http://ftpmirror.gnu.org/emacs/emacs-24.4.tar.xz"
mirror "https://ftp.gnu.org/pub/gnu/emacs/emacs-24.4.tar.xz"
sha256 "47e391170db4ca0a3c724530c7050655f6d573a711956b4cd84693c194a9d4fd"