emacs/var/elfeed/db/data/08/0816ed191438d43de3d9c13ccd7df12961649d83
2022-01-03 12:49:32 -06:00

22 lines
1,008 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>Raw link: <a href="https://www.youtube.com/watch?v=zxS3zXwV0PU">https://www.youtube.com/watch?v=zxS3zXwV0PU</a></p>
<p>In this screen cast I demonstrate the power of Emacs <code>occur</code>
function using a real-world scenario.</p>
<p>On the face of it, <code>occur</code> is similar to <code>grep</code>: it outputs a list of
results matching a search pattern. However, these results can be
interfaced with and can even be edited directly, with all changes
echoed to the actual file.</p>
<p>As such, <code>occur</code> can be used as a “scoping” or “narrowing” tool to
limit the buffer to certain terms. Then the full editing capabilities
of Emacs can be put to use: replacing using regular expressions,
keyboard macros, external packages such as <code>multiple-cursors</code>, etc.</p>
<p>I can already state with confidence that Emacs is a powerhouse of
productivity once you familiarise yourself with its tools and
utilities.</p>