LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   emacs module install (https://www.linuxquestions.org/questions/linux-software-2/emacs-module-install-325976/)

Hockeyfan 05-22-2005 12:59 PM

emacs module install
 
I just found a module that will highlight keywords for Apache velocity. My only problem is that I can not find the right directory to put the vtl.el file in. Can someone please tell me?

Thanks

foo_bar_foo 05-22-2005 01:51 PM

in emacs you do Cntrl. h then v load-path RETURN and emacs will tell you all the places it looks for lisp code
just put it in the first place
you might want to
while you are in that directory go ahead and
Esc. (push and relaese) x byte-compile-file RETURN and feed it the file to compile so it runs better

you could always create a new entry in search-path using your ~/.emacs file but no reason to

also it might require some code in ~/.emacs to get it to load at apropriate times
consult the info the author gives
i think this is it but i'm not sure -- don't use it myself
Code:

(autoload 'turn-on-vtl-mode "vtl" nil t)
(add-hook 'html-mode-hook 'turn-on-vtl-mode t t)
(add-hook 'xml-mode-hook 'turn-on-vtl-mode t t)
(add-hook 'text-mode-hook 'turn-on-vtl-mode t t)

or you can put the code to load the mode (i bust a rhyme)
into a file in the directory it's in named site-start.el i think but again no need to do that just use ~/.emacs


All times are GMT -5. The time now is 05:32 AM.