Skip to content

Instantly share code, notes, and snippets.

@wkf
Created July 16, 2015 01:29
Show Gist options
  • Save wkf/50dbfbfb8f3e1ef6401d to your computer and use it in GitHub Desktop.
Save wkf/50dbfbfb8f3e1ef6401d to your computer and use it in GitHub Desktop.
(add-hook 'nrepl-connected-hook
(lambda ()
(require 'ansi-color)
(with-current-buffer nrepl-server-buffer
(linum-mode)
(ansi-color-apply-on-region (point-min) (point-max))
(add-hook 'after-change-functions
(lambda (begin end length)
(ansi-color-apply-on-region begin end))
nil
t))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment