aboutsummaryrefslogtreecommitdiff
path: root/home-manager/homeModules/emacs/templates.eld
blob: 138888f745aa533d14ea42ee3b71dab44364720c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
nix-mode

(opt "{ pkgs, config, lib, ... }:"
     n
     n "{"
     n> "options = {"
     n> (p "option name" name) ".enable = lib.mkEnableOption \"enable " (s name) "\";"
     n "  };"
     n> "config = lib.mkIf config." (s name) ".enable {"
     n> q
     n "  };"
     n "}")

python-ts-mode

(view "class " (s name) "ViewSet(viewsets.ModelViewSet):"
     n> "queryset = " (s name) ".objects.all()"
     n> "serializer_class = " (s name) "Serializer")