Created
          February 24, 2012 18:56 
        
      - 
      
- 
        Save eschulte/1902952 to your computer and use it in GitHub Desktop. 
  
    
      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
    
  
  
    
  | (font-lock-add-keywords | |
| 'lisp-mode | |
| '(("\\<\\(bind\\)\\>" . font-lock-keyword-face) | |
| ("\\<\\(lambda-bind\\)\\>" . font-lock-keyword-face) | |
| ("\\<\\(lambda-registers\\)\\>" . font-lock-keyword-face) | |
| ("\\<\\(when-let\\)\\>" . font-lock-keyword-face) | |
| ("\\<\\(if-let\\)\\>" . font-lock-keyword-face) | |
| ;; fancy character for smaller lambda-bind | |
| ("(?\\(lambda-bind\\>\\)" | |
| (0 (progn (compose-region (match-beginning 1) (match-end 1) ?\β) nil))) | |
| ("(?\\(lambda-registers\\>\\)" | |
| (0 (progn (compose-region (match-beginning 1) (match-end 1) ?\Ρ) nil))))) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Example of how to easily add pretty characters to a major-mode.