Remove template file shortcut
Add FHSEnv template for nix files
This commit is contained in:
parent
ecc4873975
commit
79ff1e8bd3
|
@ -1290,15 +1290,7 @@
|
|||
;; Scratch buffer shortcut
|
||||
(keymap-global-set "C-c w x" #'scratch-buffer)
|
||||
|
||||
;; Tempel template file shortcut
|
||||
(defun my/open-template-file ()
|
||||
"Open `tempel' template file."
|
||||
(interactive)
|
||||
(require 'tempel)
|
||||
(find-file tempel-path))
|
||||
(keymap-global-set "C-c w t" #'my/open-template-file)
|
||||
|
||||
;; Org directory shortcut
|
||||
;; Org shortcuts
|
||||
(defun my/open-org-directory ()
|
||||
"Open base `org-mode' directory in Dired."
|
||||
(interactive)
|
||||
|
@ -1313,6 +1305,13 @@
|
|||
(find-file org-default-notes-file))
|
||||
(keymap-global-set "C-c w n" #'my/open-org-default-notes-file)
|
||||
|
||||
(defun my/open-org-default-tasks-file ()
|
||||
"Open default `org-mode' tasks file."
|
||||
(interactive)
|
||||
(require 'org)
|
||||
(find-file (expand-file-name "tasks.org" org-directory)))
|
||||
(keymap-global-set "C-c w t" #'my/open-org-default-tasks-file)
|
||||
|
||||
(defun my/open-global-bibliography ()
|
||||
"Open `org-cite-global-bibliography'."
|
||||
(interactive)
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
nix-mode
|
||||
|
||||
(fhsenv "let" n
|
||||
> "pkgs = import " (p "<nixpkgs>") " { };" n
|
||||
> "fhs = pkgs.buildFHSUserEnv {" n
|
||||
> "name = \"" (p "env") "\";" n
|
||||
> "targetPkgs = _: [ " q " ];" n
|
||||
> "profile = \"\";" n
|
||||
> "};" n
|
||||
"in" n
|
||||
> "fhs.env")
|
||||
(pydefault "let" n
|
||||
> "pkgs = import " (p "<nixpkgs>") " { };" n
|
||||
> "pyproject-nix = import (builtins.fetchGit {" n
|
||||
|
|
Loading…
Reference in a new issue