Add python template for envrc files

Change tempel prefix from < to +
This commit is contained in:
Evie Litherland-Smith 2024-07-23 07:31:15 +01:00
parent df1794e3fe
commit 49be9727a8
2 changed files with 8 additions and 1 deletions

View file

@ -786,7 +786,7 @@
("M-*" . tempel-insert))
:hook ((conf-mode prog-mode text-mode) . (lambda () (add-hook 'completion-at-point-functions 'tempel-complete nil t)))
:custom
(tempel-trigger-prefix "<"))
(tempel-trigger-prefix "+"))
(require 'tramp)
(setq org-publish-project-alist

View file

@ -203,6 +203,13 @@ python-base-mode
(logg "logger = logging.getLogger(__name__)")
(nimp "raise NotImplementedError")
envrc-file-mode
(python "CC=\"$(nix build nixpkgs#stdenv.cc.cc.lib --print-out-paths --no-link)\"" n
"ZLIB=\"$(nix build nixpkgs#zlib --print-out-paths --no-link)\"" n
"export LD_LIBRARY_PATH=\"$CC/lib\":\"$ZLIB/lib\"" n
"source .venv/bin/activate")
;; Local Variables:
;; mode: lisp-data
;; outline-regexp: "[a-z]"