<html lang="en"> <head> <title>Using the Emacs Info Reader for Octave - GNU Octave</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="GNU Octave"> <meta name="generator" content="makeinfo 4.13"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="Emacs-Octave-Support.html#Emacs-Octave-Support" title="Emacs Octave Support"> <link rel="prev" href="Running-Octave-from-Within-Emacs.html#Running-Octave-from-Within-Emacs" title="Running Octave from Within Emacs"> <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"><!-- pre.display { font-family:inherit } pre.format { font-family:inherit } pre.smalldisplay { font-family:inherit; font-size:smaller } pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } span.sc { font-variant:small-caps } span.roman { font-family:serif; font-weight:normal; } span.sansserif { font-family:sans-serif; font-weight:normal; } --></style> </head> <body> <div class="node"> <a name="Using-the-Emacs-Info-Reader-for-Octave"></a> <p> Previous: <a rel="previous" accesskey="p" href="Running-Octave-from-Within-Emacs.html#Running-Octave-from-Within-Emacs">Running Octave from Within Emacs</a>, Up: <a rel="up" accesskey="u" href="Emacs-Octave-Support.html#Emacs-Octave-Support">Emacs Octave Support</a> <hr> </div> <h3 class="appendixsec">H.4 Using the Emacs Info Reader for Octave</h3> <p>You may also use the Emacs Info reader with Octave's <code>doc</code> function. For this, the package <samp><span class="file">gnuserv</span></samp> needs to be installed. <p>If <samp><span class="file">gnuserv</span></samp> is installed, add the lines <pre class="lisp"> (autoload 'octave-help "octave-hlp" nil t) (require 'gnuserv) (gnuserv-start) </pre> <p class="noindent">to your <samp><span class="file">.emacs</span></samp> file. <p>You can use either `plain' Emacs Info or the function <code>octave-help</code> as your Octave info reader (for ‘<samp><span class="samp">help -i</span></samp>’). In the former case, use <code>info_program ("info-emacs-info")</code>. The latter is perhaps more attractive because it allows to look up keys in the indices of <em>several</em> info files related to Octave (provided that the Emacs variable <code>octave-help-files</code> is set correctly). In this case, use <code>info_program ("info-emacs-octave-help")</code>. <p>If you use Octave from within Emacs, it is best to add these settings to your <samp><span class="file">~/.emacs-octave</span></samp> startup file (or the file pointed to by the Emacs variable <code>inferior-octave-startup-file</code>). <!-- DO NOT EDIT! Generated automatically by munge-texi.pl. --> <!-- Copyright (C) 1996-2012 John W. Eaton --> <!-- This file is part of Octave. --> <!-- Octave is free software; you can redistribute it and/or modify it --> <!-- under the terms of the GNU General Public License as published by the --> <!-- Free Software Foundation; either version 3 of the License, or (at --> <!-- your option) any later version. --> <!-- Octave is distributed in the hope that it will be useful, but WITHOUT --> <!-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or --> <!-- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --> <!-- for more details. --> <!-- You should have received a copy of the GNU General Public License --> <!-- along with Octave; see the file COPYING. If not, see --> <!-- <http://www.gnu.org/licenses/>. --> </body></html>