Skip to content

Instantly share code, notes, and snippets.

@shmul
shmul / org2doku
Last active August 29, 2015 13:56 — forked from takumikinjo/org2doku
#!/usr/bin/env perl
# Usage
#
# cat <<EOF | ./org2doku
# * heading
#
# - item
# - sub item
#
@fujin
fujin / ruby.el
Created March 15, 2013 22:36 — forked from chrisroberts/gist:5173018
Fix the fucking indentation rules for ruby-mode
(setq ruby-deep-indent-paren nil)
(defadvice ruby-indent-line (after unindent-closing-paren activate)
(let ((column (current-column))
indent offset)
(save-excursion
(back-to-indentation)
(let ((state (syntax-ppss)))
(setq offset (- column (current-column)))
(when (and (eq (char-after) ?\))
(not (zerop (car state))))