본문 바로가기

Editor/Emacs

Log4j mode and highlight tail mode on Emacs


;; ----------------------------------------------------------------------------
;; Log4j and Highlight tail mode 
;; ----------------------------------------------------------------------------

(autoload 'log4j-mode "log4j-mode" "Major mode for viewing log files." t)
(add-to-list 'auto-mode-alist '("\\.log\\'" . log4j-mode))

(require 'highlight-tail)
(message "Highlight-tail loaded - now your Emacs will be even more sexy!")

(setq highlight-tail-colors '(("black" . 0)
                               ("#bc2525" . 25)
                               ("black" . 66)))

(setq highlight-tail-steps 14
       highlight-tail-timer 1)
 
(setq highlight-tail-posterior-type 'const)


********************************************************************************************




아래의 파일을 다운받아서 load-path 디렉토리에 파일을 넣어주면 된다.



highlight tail mode 다운받기> http://blog.arithm.com/wp-content/plugins/download-monitor/download.php?id=1