Suppose I define a custom macro in emacs in my .emacs file. Is there a way to ensure that it works only on the region I marked in a buffer before executing my command, without going into details of the macro definiton?
|
|
|||
|
|
|
I don't think this is possible at the level of macros, it's going to depend on the commands inside the macro. That being said, macros have gotten more flexible since I learned Emacs, so it's possible that I'm missing something. Emacs offers another possibility to work on part of a file: narrowing. Select the region you want to work with, and press A feature that's often convenient together with narrowing is indirect buffers. Run |
||||
|