Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] [TotD] nagios-mode for [X]Emacs



>From my blog (http://jmglov.blogspot.com/2011/04/nagios-mode-for-emacs.html):

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))


Cheers,
Josh

PS: OK Steve, let fly with snide remarks and suggestions for improving
this workflow. ;)


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links