Code Monkey home page Code Monkey logo

Comments (3)

hlissner avatar hlissner commented on May 20, 2024

No selection is necessary. You type def, press tab and the snippet expands.

Make sure you have snippets installed. They're not included in this config. I keep mine in a separate repo. Run make snippets in ~/.emacs.d to install them (or just clone them to ~/.emacs.d/private/snippets) -- if you use them, I suggest you fork them; mine are tied closely to my own workflows and will change often.

Assuming you have snippets installed, these are the two main ways to use snippet expansion (| will represent the cursor, as well as the editable points you can cycle through with Tab after expansion):

  • defun| => Tab => (defun fn-name| (|) |)

  • (message "Hi") => select the form => Tab => select defun =>

    (defun fn-name|()
      (message "Hi")|)

This gif illustrates these two workflows:

from doomemacs.

UndeadKernel avatar UndeadKernel commented on May 20, 2024

It must've been something messed up with my repository copy.
After loading the master branch from scratch and loading some snippets, it is back to working!
Quick question: which tools are you using for creating the animated gifs?

from doomemacs.

hlissner avatar hlissner commented on May 20, 2024

Oh gosh, I'm so sorry i'm only noticing this message now! I'm actually still on the prowl for a good gif app. For the above, I used Quicktime Player (which has a screen recorder on Mac) and used this script to convert the resulting .mov file into a .gif.

You could use any screen recorder with that script, really. Haven't tried it with other video formats though.

Other alternatives:

from doomemacs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.