Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As Trey said, use the elisp from Emacs itself to learn. I usually do one of two things:</p> <p>1) If I'm trying to find out how to use a specific function, I'll bring up a <code>dired</code> window and do:</p> <pre><code>% g foobar </code></pre> <p>where <code>foobar</code> is the name of the function I'm interested in learning how to use. That will mark all of the files that use <code>foobar</code> and then I go and search through them to see how to call it, in what context it's being called, etc.</p> <p>2) If I'm trying to figure out how to do something, and I know a mode that does something similar, I'll go look at that mode's source code to see how they do it. If you don't know where to start, but you know how to execute what it is you want to do, a handy thing to do is to look it up by key-binding. For example, in a <code>dired</code> buffer, do the following:</p> <pre><code>C-h k % g </code></pre> <p>and that will bring up:</p> <pre><code>% g runs the command dired-mark-files-containing-regexp, which is an % interactive compiled Lisp function in `dired.el'. It is bound to % g, &lt;menu-bar&gt; &lt;regexp&gt; &lt;mark-cont&gt;. (dired-mark-files-containing-regexp regexp &amp;optional marker-char) Mark all files with contents containing regexp for use in later commands. A prefix argument means to unmark them instead. `.' and `..' are never marked. </code></pre> <p>Clicking on <code>dired.el</code> in the above text (in an emacs buffer) will open up the source code and take you right to that function definition. It's a great way to learn by example.</p> <p>Don't forget the elisp debugger as a way to see exactly what's going on and following along as the code executes step-by-step. You can mark the code for debugging using <code>edebug-defun</code> and then invoke it as usual, at which point emacs will step you through the code.</p>
    singulars
    1. This table or related slice is empty.
    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.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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