Logo
Explore Help
Sign In
phundrak/dotfiles
1
0
Fork 0
You've already forked dotfiles
Code Issues Pull Requests Activity
dotfiles/.config/emacs/private/snippets/rust-mode/new

10 lines
155 B
Plaintext
Raw Normal View History

[Emacs] Add new Rust snippets, common-lisp layer This commit adds two new snippets for Rust, one for an easier way to write a `println' macro than the default one, and another one for writing more easily new `new' functions for Rust structs. It also adds the `common-lisp' layer in Emacs so I can test StumpWM.
2020-08-24 14:41:09 +02:00
# -*- mode: snippet -*-
# name: new
# key: _new
# --
fn new(${1:args}) -> Self {
$0
Self {
${1:$(phundrak/yas-rust-new-assignments yas-text)}
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 40ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API