Lucien Cartier-Tilet
2a19478995
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.
10 lines
155 B
Plaintext
10 lines
155 B
Plaintext
# -*- mode: snippet -*-
|
|
# name: new
|
|
# key: _new
|
|
# --
|
|
fn new(${1:args}) -> Self {
|
|
$0
|
|
Self {
|
|
${1:$(phundrak/yas-rust-new-assignments yas-text)}
|
|
}
|
|
} |