diff --git a/init.el b/init.el index aca384f..29c4559 100644 --- a/init.el +++ b/init.el @@ -289,26 +289,6 @@ (find-file (locate-user-emacs-file "init.el"))) (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 (defun my/open-org-directory () "Open base `org-mode' directory in Dired."