Remove flake shortcuts
This commit is contained in:
parent
58d0b6299f
commit
d1916d6569
20
init.el
20
init.el
|
@ -289,26 +289,6 @@
|
||||||
(find-file (locate-user-emacs-file "init.el")))
|
(find-file (locate-user-emacs-file "init.el")))
|
||||||
(keymap-global-set "C-c w e" #'my/open-init-file)
|
(keymap-global-set "C-c w e" #'my/open-init-file)
|
||||||
|
|
||||||
;; NixOS flake shortcut
|
|
||||||
(defun my/open-nixos-flake ()
|
|
||||||
"Open NixOS system config flake."
|
|
||||||
(interactive)
|
|
||||||
(let ((flake "/etc/nixos/flake.nix"))
|
|
||||||
(if (file-exists-p flake)
|
|
||||||
(find-file flake)
|
|
||||||
(warn (concat flake " not found")))))
|
|
||||||
(keymap-global-set "C-c w n" #'my/open-nixos-flake)
|
|
||||||
|
|
||||||
;; home-manager flake shortcut
|
|
||||||
(defun my/open-home-manager-flake ()
|
|
||||||
"Open home-manager config flake."
|
|
||||||
(interactive)
|
|
||||||
(let ((flake "~/.config/home-manager/flake.nix"))
|
|
||||||
(if (file-exists-p flake)
|
|
||||||
(find-file flake)
|
|
||||||
(warn (concat flake " not found")))))
|
|
||||||
(keymap-global-set "C-c w h" #'my/open-home-manager-flake)
|
|
||||||
|
|
||||||
;; Org directory shortcut
|
;; 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."
|
||||||
|
|
Loading…
Reference in a new issue