Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Work in progress: View and edit parts of multiple files in one buffer
Emacs Lisp Other
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


An initial attempt at "multifiles" as defined here.


(require 'multifiles)


Open a new buffer, insert the contents of another file like this:

M-: (mf/insert-mirror "~/.emacs.d/init.el" 30 39)

which would insert the lines 30-39 in the file ~/.emacs.d/init.el.

You can then repeat that to get multiple files in the buffer. You can also edit the block, and the changes will be mirrored instantly in the other file.

Be careful! Right now the mirror only works one way. Changes in the original files are not currently mirrored into the multi-file. So any changes might be lost if you're switching back and forth.

This should be fixable, but this is all I have time for tonight.


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

Something went wrong with that request. Please try again.