From owner-freebsd-doc Thu Apr 11 11:28:23 2002 Delivered-To: freebsd-doc@freebsd.org Received: from CC40670-a.groni1.gr.nl.home.com (cc40670-a.groni1.gr.nl.home.com [217.120.131.23]) by hub.freebsd.org (Postfix) with ESMTP id 3B92437B405 for ; Thu, 11 Apr 2002 11:28:01 -0700 (PDT) Received: from lisa.CC40670-a.groni1.gr.nl.home.com (lisa.CC40670-a.groni1.gr.nl.home.com [192.168.1.2]) by CC40670-a.groni1.gr.nl.home.com (8.12.2/8.12.2) with ESMTP id g3BIS3kC053541 for ; Thu, 11 Apr 2002 20:28:03 +0200 (CEST) (envelope-from jochem@lisa.CC40670-a.groni1.gr.nl.home.com) Received: from lisa.CC40670-a.groni1.gr.nl.home.com (localhost [127.0.0.1]) by lisa.CC40670-a.groni1.gr.nl.home.com (8.12.2/8.12.2) with ESMTP id g3BIRsxg020034 for ; Thu, 11 Apr 2002 20:27:54 +0200 (CEST) (envelope-from jochem@lisa.CC40670-a.groni1.gr.nl.home.com) Received: (from jochem@localhost) by lisa.CC40670-a.groni1.gr.nl.home.com (8.12.2/8.12.2/Submit) id g3BIRsIl020033 for doc@FreeBSD.org; Thu, 11 Apr 2002 20:27:54 +0200 (CEST) Date: Thu, 11 Apr 2002 20:27:54 +0200 From: Jochem Kossen To: doc@FreeBSD.org Subject: GNU emacs 21.2 Message-ID: <20020411182754.GA20002@jochem.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Be warned: emacs newbie :-) In the documentation primer is recommended to use Emacs as the editor for the documentation project. It is said that PSGML is loaded whenever opening a document ending in .sgml. Now, when i open a document in GNU emacs 21.2, it starts some kind of sgml-mode, but from what others are telling me, it's not PSGML that's loaded. I noticed it too when indention didn't work after inserting the "(setq sgml-mode-hook blah" from the primer into my ~/.emacs. So, i installed the psgml port, and added this (found in the psgml info file): (autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t) (autoload 'xml-mode "psgml" "Major mode to edit XML files." t) Now, after opening a SGML document, i get: File mode specification error: (error "Autoloading failed to define function sgml-mode") Does anyone know what to put in ~/.emacs to get the sgml support completely working? (including correct spacing and indention?) Thanks, Jochem To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message