- Browse to http://michael.orlitzky.com/git/?p=nagios-mode.git;a=blob_plain;f=nagios-mode.el;hb=HEAD
- Save file to something like ~/.xemacs/user_lisp/nagios-mode.el
- If you haven't already included ~/.xemacs/user_lisp in your load path, do so now by adding the following to your ~/.xemacs/custom.el:
(add-to-list 'load-path "$HOME/.xemacs/user_lisp/")
- Now, load nagios-mode.el by adding the following to your ~/.xemacs/custom.el:
(autoload 'nagios-mode "$HOME/.xemacs/user_lisp/nagios-mode.el"
"Major mode for editing Nagios config files" t) - Finally, you'll want nagios-mode.el automatically enabled for Nagios config files, so add the following to your ~/.xemacs/custom.el:
; nagios-mode
(add-to-list 'auto-mode-alist
'("nagios-config/objects/.+\\.cfg$" . nagios-mode))
You're welcome. ;)
No comments:
Post a Comment