[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: man pages in c-mode
From: |
David Hansen |
Subject: |
Re: man pages in c-mode |
Date: |
Thu, 31 May 2007 00:47:44 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) |
On Wed, 30 May 2007 23:02:38 +0200 Hadron wrote:
> I thought this might turn my man page display into c-mode. It
> doesnt. What must I do?
>
> (defun jump-man-page ()
> (interactive)
> (manual-entry (current-word))
> (c-mode)
> )
(let ((Man-mode-hook (push #'c-mode Man-mode-hook)))
(manual-entry "fprintf"))
may work but i doubt it's a good idea. Note that at least on my system
every man page starts with "Linux Programmer's Manual" and font-lock
isn't happy about the `''.
David