Last active
          December 11, 2015 23:09 
        
      - 
      
- 
        Save doitian/4674724 to your computer and use it in GitHub Desktop. 
    Customize Guard Emacs and Tmux notifiers
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/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