tech-userlevel archive

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

Re: emacs using /usr/share/misc/NetBSD.el



Jukka Ruohonen <jruohonen%iki.fi@localhost> writes:

> To make life easier, you could also do something like:
>
> (setq auto-mode-alist
>       (append '(("\\.c$"   . c-mode))
>               '(("\\.h$"   . c-mode))
>               '(("\\.cc$"  . c++-mode))
>               '(("\\.cpp$" . c++-mode))
>               '(("\\.erl$" . erlang-mode))
>               '(("\\.hsk$" . haskell-mode))
>               '(("\\.tex$" . tex-mode))
>               '(("\\.bib$" . bibtex-mode))
>               '(("\\.py$"  . python-mode))
>               '(("\\.ac$"  . autoconf-mode))
>               '(("\\.in$"  . autoconf-mode))
>               auto-mode-alist))

This is useless, because ".c", ".h", ".cc", ".cpp" are already associated,
and may be wrong at least in calling tex-mode, because the default
association is latex-mode, which may differ significantly.



-- 
HE CE3OH...



Home | Main Index | Thread Index | Old Index