Hi Naresh,

Here's a great tutorial on how to do it:
http://www.emacswiki.org/emacs/ModeTutorial

Emacs has a mind boggling number of modes readily available so in most cases
you won't have to write one from ground up. Take a look at
http://www.emacswiki.org/emacs/CategoryModes for a list of modes available.

To install a new mode you can try the following:

C-h v load-path

See the directories there and put your .el file into one of those
directories. You can add something like the following in to your ~/.emacs
file so that the mode is loaded automatically:

;; for HTML files
(autoload 'html-mode "html-mode" "HTML mode" t)
(setq auto-mode-alist (append '(("\\.html$" . html-mode))
auto-mode-alist))

Pretty useful :-)

Regards
Manohar

On Fri, Feb 26, 2010 at 10:27 PM, Raja <[email protected]> wrote:

>
>> >
>> > I am currently working on providing PDF versions of the newsletter but
>> it
>> > will not be available immediately. I write the newsletter directly in
>> HTML
>> > in emacs so it is a little harder to move it over to PDF. Perhaps in the
>> > future, I can make use of typesetting toolkits like LaTeX (my experience
>> > with it is scanty at best).
>> >
>>
>> >> >
>> >> > Regards
>> >> > Manohar Vanga
>>
>
> hey Manohar!
>
> this could be off-topic but can you please tell me how to install a new
> mode in emacs. I assume one needs to have the .el file or whatever and then
> modify some config file, but i'm not sure how this works.
>
> thanks
> raja
>
>

Reply via email to