Skip to content

Instantly share code, notes, and snippets.

@rocknrollMarc
Forked from doitian/.guard.rb
Last active August 29, 2015 14:13
Show Gist options
  • Save rocknrollMarc/3aa34d0f5c67d5409fd4 to your computer and use it in GitHub Desktop.
Save rocknrollMarc/3aa34d0f5c67d5409fd4 to your computer and use it in GitHub Desktop.
require 'guard/notifier'
notifiers_options = {
:emacs => {
:fontcolor => "#acbc90",
:default => "#1e2320",
:success => "#013009",
:failed => "#310602",
:pending => "#534626"
},
:tmux => {
:success => 'colour64',
:failed => 'colour124',
:pending => 'colour136',
:default => 'colour239',
:display_message => false,
}
}
::Guard::Notifier::NOTIFIERS.each do |group|
group.map { |n| n.first }.find { |notifier|
::Guard::Notifier.add_notification(notifier,
notifiers_options[notifier] || {},
true)
}
end
#!/bin/bash
# resetore the original colors
emacsclient --eval '(set-face-attribute '\''mode-line nil :background "#1e2320" :foreground "#acbc90")'
tmux set status-left-bg colour239
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment