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
|
;; Scratch buffer shortcut
|
||||||
(keymap-global-set "C-c w x" #'scratch-buffer)
|
(keymap-global-set "C-c w x" #'scratch-buffer)
|
||||||
|
|
||||||
;; Tempel template file shortcut
|
;; Org shortcuts
|
||||||
(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
|
|
||||||
(defun my/open-org-directory ()
|
(defun my/open-org-directory ()
|
||||||
"Open base `org-mode' directory in Dired."
|
"Open base `org-mode' directory in Dired."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
@ -1313,6 +1305,13 @@
|
||||||
(find-file org-default-notes-file))
|
(find-file org-default-notes-file))
|
||||||
(keymap-global-set "C-c w n" #'my/open-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 ()
|
(defun my/open-global-bibliography ()
|
||||||
"Open `org-cite-global-bibliography'."
|
"Open `org-cite-global-bibliography'."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
|
@ -1,5 +1,14 @@
|
||||||
nix-mode
|
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
|
(pydefault "let" n
|
||||||
> "pkgs = import " (p "<nixpkgs>") " { };" n
|
> "pkgs = import " (p "<nixpkgs>") " { };" n
|
||||||
> "pyproject-nix = import (builtins.fetchGit {" n
|
> "pyproject-nix = import (builtins.fetchGit {" n
|
||||||
|
|
Loading…
Reference in a new issue