Skip to content

Instantly share code, notes, and snippets.

View Kungi's full-sized avatar

Andreas Klein Kungi

  • DemandFlow GmbH
  • Germany
View GitHub Profile
@Kungi
Kungi / anonymous-gist.clj
Created August 22, 2014 15:36
building the test call for fntest execute
(defmacro build-test-call [nses format to-file output-file]
(let [format-fn (cond (= format "tap")
'clojure.test.tap/with-tap-output
(= format "junit")
'clojure.test.junit/with-junit-output
:else
identity)]
(if to-file
`(with-open [results#
(java.io.FileWriter. ~output-file)]
@Kungi
Kungi / anonymous-gist.org
Created June 19, 2014 09:14
Vertical Ido

I like my completions in a vertical list rather than a horizontal line

;; Display ido results vertically, rather than horizontally
(setq ido-decorations (quote ("\n-> " "" "\n   " "\n   ..." "[" "]"
                           " [No match]" " [Matched]" " [Not readable]" " [Too big]" " [Confirm]")))

(defun ido-disable-line-trucation ()
  (set (make-local-variable 'truncate-lines) nil))

(add-hook 'ido-minibuffer-setup-hook
@Kungi
Kungi / gist:6312427
Created August 22, 2013 20:34
This is how I initialize yagist with evil mode and trailing whitespace mode
(require 'yagist)
(add-hook 'yagist-list-mode-hook
(lambda () (progn
(evil-emacs-state)
(turn-off-trailing-whitespace))))