Created
January 23, 2012 03:25
-
-
Save shomah4a/1660279 to your computer and use it in GitHub Desktop.
結局これで落ち着いた
This file contains 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
;; compilation-start をゴニョる | |
(defadvice compilation-start (before compilation-start-before (command &optional mode name-function highlight-regexp)) | |
(if (null name-function) | |
(setq name-function | |
(lambda (name) | |
(concat "*" | |
name | |
" \"" | |
command | |
"\"*")))) | |
) | |
(ad-activate 'compilation-start) | |
;; occur-1 をゴニョる | |
(defadvice occur-1 (before occur-1-before (regexp nlines bufs &optional buf-name)) | |
(if (null buf-name) | |
(setq buf-name | |
(concat "*Occur \"" | |
(buffer-name (current-buffer)) | |
"(" | |
regexp | |
")\"*"))) | |
) | |
(ad-activate 'occur-1) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment