All Projects → mrkkrp → common-lisp-snippets

mrkkrp / common-lisp-snippets

Licence: other
Yasnippets for Common Lisp

Programming Languages

YASnippet
69 projects
emacs lisp
2029 projects

Projects that are alternatives of or similar to common-lisp-snippets

Snippet2
A simple Code Snippet with user account and share feature
Stars: ✭ 20 (-45.95%)
Mutual labels:  snippets
competitive-programming-rs
Algorithm Snippets for Competitive Programming in Rust
Stars: ✭ 157 (+324.32%)
Mutual labels:  snippets
jquery-course
Code from my Udemy course "The Complete jQuery Course: From Beginner to Advanced"
Stars: ✭ 127 (+243.24%)
Mutual labels:  snippets
30-seconds-of-git
Short git snippets for all your development needs
Stars: ✭ 235 (+535.14%)
Mutual labels:  snippets
tricks
Tipps und Tricks rund um REDAXO 5
Stars: ✭ 96 (+159.46%)
Mutual labels:  snippets
js-jsx-snippets
Extensions for React, Redux in JS with babel and ES7 syntax
Stars: ✭ 15 (-59.46%)
Mutual labels:  snippets
dev-cheatsheets
A collection of code snippets and CLI guides for quick and easy reference while coding
Stars: ✭ 33 (-10.81%)
Mutual labels:  snippets
sublime-node-snippets
A collection of completions/snippets for node.js v8.x
Stars: ✭ 14 (-62.16%)
Mutual labels:  snippets
ZenScript
Visual Studio Code extension/Language Server for ZenScript, includes highlight, code snippet and language server(WIP). Works with 👇
Stars: ✭ 29 (-21.62%)
Mutual labels:  snippets
aergia
Vim snippet manager.
Stars: ✭ 31 (-16.22%)
Mutual labels:  snippets
IOTA101
IOTA Developer Essentials
Stars: ✭ 38 (+2.7%)
Mutual labels:  snippets
ethereum-scripts
Common useful JavaScript snippets for geth
Stars: ✭ 33 (-10.81%)
Mutual labels:  snippets
EthereumSoliditySnippets
Set of useful snippet for efficiently using SublimeText and the Ethereum Solidity SmartContract programming language.
Stars: ✭ 27 (-27.03%)
Mutual labels:  snippets
antd-snippets
Ant-Design Snippets for VS Code
Stars: ✭ 37 (+0%)
Mutual labels:  snippets
TLDR.jl
A package for fast help and snippets
Stars: ✭ 16 (-56.76%)
Mutual labels:  snippets
ReactEd
An extension to assist with development of react and redux applications.
Stars: ✭ 48 (+29.73%)
Mutual labels:  snippets
competitive-haskell
Snippets for competitive programming in Haskell
Stars: ✭ 23 (-37.84%)
Mutual labels:  snippets
code-examples-manager
Software tool to manage your notes and code examples, to publish them as gists or snippets
Stars: ✭ 26 (-29.73%)
Mutual labels:  snippets
easyvk
This app helps you create an apps with vk api easy!
Stars: ✭ 97 (+162.16%)
Mutual labels:  snippets
Symfony-code-snippets
Over 100 Symfony Code Snippets for PhP code And Over 80 Twig Code Snippets. Just type the letters 'sf' to get a list of all available Symfony Code Snippets. For Twig Just Type the Tag name and you will get AutoCompletion.
Stars: ✭ 15 (-59.46%)
Mutual labels:  snippets

Yasnippets for Common Lisp

License GPL 3 MELPA Build Status

This is a collection of Yasnippets for Common Lisp. It includes snippets for top-level forms and (as a bonus) headers for popular free-software licenses: GNU GPL and MIT License.

Installation

To use these snippets you need to install the Yasnippet package. Once you have Yasnippet installed, place contents of this repository on your load path, so Emacs can see it and add the following to your configuration file:

(require 'common-lisp-snippets)

It's now available via MELPA: M-x package-install RET common-lisp-snippets RET—and you are done!

Usage

To insert a snippet, type its name and press ↹ Tab or C-i, for example:

defsystem
⇒
(asdf:defsystem :system-name
  :version      "0.1.0"
  :description  "description"
  :author       "user-full-name <user-mail-address>"
  :serial       t
  :license      "GNU GPL, version 3"
  :components   ((:file "file.lisp"))
  :depends-on   (#:alexandria))

…you can move through the fields pressing ↹ Tab and edit or delete them. Some fields, like :author try to guess their values.

As a special bonus, there are snippets to insert headers of files that contain information about the software license (gnugpl and mitlic), they are smart too.

Contributions

There are some stylistic conventions:

  • Name files without extensions.

  • Start every file with this preamble:

    # -*- mode: snippet -*-
    # contributor: your name
    # name: readable name of the snippet
    # key: what user needs to enter
    # --
    

    The first line is needed to activate mode for snippet editing in Emacs, Yasnippet ships with it.

  • Make sure your files don't have an empty line at the end. This is important, because it will be inserted when your snippet is expanded. snippet-mode takes care of this, setting require-final-newline to nil, just make sure you haven't put it there manually.

License

Copyright © 2015–2017 Mark Karpov

Distributed under GNU GPL, version 3.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].