Browse Source

Added yasnippet

master
Josh Wolfe 2 years ago
parent
commit
9aeb0d8d1a
2 changed files with 25 additions and 0 deletions
  1. 8
    0
      emacs/.emacs.d/README.org
  2. 17
    0
      emacs/.emacs.d/snippets/csharp-mode/class

+ 8
- 0
emacs/.emacs.d/README.org View File

@@ -1621,6 +1621,14 @@ On the fly syntax checking
(setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc)))
#+END_SRC

** Yasnippet

#+BEGIN_SRC emacs-lisp :tangle yes
(use-package yasnippet
:config
(yas-global-mode 1))
#+END_SRC

* Misc
** Email


+ 17
- 0
emacs/.emacs.d/snippets/csharp-mode/class View File

@@ -0,0 +1,17 @@
# -*- mode: snippet -*-
# name: class
# key: class
# --
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ${1:namespace}
{
class ${2:name}
{
$0
}
}

Loading…
Cancel
Save