Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (28 sloc) 1.469 kb


An initial attempt at "multifiles" as defined here.


(require 'multifiles)


Bind a key to mf/mirror-region-in-multifile, let's say C-!. Now mark a part of the buffer and press it. A new *multifile* buffer pops up. Mark some other part of another file, and press C-! again. This is added to the *multifile*.

You can now edit the *multifile* buffer, and watch the original files change. Or you can edit the original files and watch the *multifile* buffer change.

Saving the *multifile* buffer will save all the original files.

Warning This API and functionality is highly volatile.


Copyright (C) 2011 Magnar Sveen

Author: Magnar Sveen Keywords: multiple files

This program 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.

This program 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 this program. If not, see

Jump to Line
Something went wrong with that request. Please try again.