Note that there are some explanatory texts on larger screens.

plurals
  1. POAdvanced editing features of Emacs
    primarykey
    data
    text
    <p>there's a <em>lot</em> of noise about super awesome features of Emacs. Be it <a href="http://orgmode.org/" rel="nofollow noreferrer">org-mode</a>, <a href="http://gnus.org/" rel="nofollow noreferrer">Gnus</a> or <a href="http://xkcd.com/378/" rel="nofollow noreferrer">C-x M-c butterfly</a>. I've used Emacs for years, so no need to convince me.</p> <p>What I personally found is that nobody talks about...actually <strong>editing</strong> text. You know that</p> <blockquote> <p>Emacs is a nice OS but it lacks an decent editor.</p> </blockquote> <p>joke? I didn't really get it until I grokked Vim.</p> <p>Now, I wrote my thesis using Emacs as my text editor, so my heart is somehow still attached to it. I'm also super envious about org-mode. So I wondered whether there maybe actually <em>are</em> features I've been missing all the time?</p> <p>I'm going to give you a few examples I use all the time:</p> <ul> <li><code>o</code>/<code>O</code> opens a new line above/below the current and puts me into insert mode no matter at which position my cursor is.</li> <li><code>ci'</code> deletes the contents of current/following '-string and puts me into insert mode.</li> <li><code>dat</code> deletes the current HTML tag. <code>cit</code> would delete the contents and put me into insert mode. <code>cstt</code> would let me edit the tag (eg make a <code>&lt;span&gt;</code> into a <code>&lt;div&gt;</code>)</li> <li><code>cs([</code> changes the surrounding "(" and ")" into "[" and "]".</li> <li>An extension allows me to address Python indentations: <code>dai</code> would delete the current indented block, <code>\\ai</code> would comment it out (\\ is an extension).</li> </ul> <p>Are there some super secret shortcuts but easily accessible shortcuts for stuff like this in Emacs? <a href="http://www.sublimetext.com/2" rel="nofollow noreferrer">Sublime Text 2</a> has a few "expand selection" functions that go a similar way albeit not that precise--but still it's very useful.</p> <p>P.S. Please don't bring up any vi emulation, just don't.</p> <p>P.P.S. Also for god's sake, no Emacs vs. Vim vs. Whatever warfare, I beg you.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload