Skip to content

Instantly share code, notes, and snippets.

@shomah4a
Created January 23, 2012 03:25
Show Gist options
  • Save shomah4a/1660279 to your computer and use it in GitHub Desktop.
Save shomah4a/1660279 to your computer and use it in GitHub Desktop.
結局これで落ち着いた
;; 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