help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Renumbering paragraphs automatically


From: Benjamin Rutt
Subject: Re: Renumbering paragraphs automatically
Date: Tue, 24 Feb 2004 16:26:09 -0500
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (usg-unix-v)

Benjamin Rutt <address@hidden> writes:

> which I call from emacs using:
>
> (defun my-outline-produce-numbered ()
>   (interactive)
>   (assert (string-match "\\.otl$" (buffer-file-name)))
>   (let ((s (shell-command-to-string
>           (format "nawk -f ~/bin/indentN.awk < %s" (buffer-file-name)))))
>     (find-file (my-re-replace-in-string "otl$" "txt" (buffer-file-name)))

Forgot to mention I do

(add-to-list 'auto-mode-alist '("\\.otl$" . outline-mode))

in my ~/.emacs.
-- 
Benjamin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]