Re: Another changelog rant
* Peter S Galbraith
| > But you can easily view the type based on a regexp match on the
| > first line
|
| How do you do that in Emacs?
Something like:
(setq find-file-hooks
(cons #'(lambda ()
;; Invoke proper modes when we don't know file extensions
(cond ((looking-at "#!.*/perl") (perl-mode))
((looking-at "#!.*/tclsh") (tcl-mode))
((looking-at "#!.*/wish") (tcl-mode))))
find-file-hooks))
And add the proper regexp for Debian changelogs.
--
Tollef Fog Heen
You Can't Win
Reply to: