Remove flake shortcuts

This commit is contained in:
Evie Litherland-Smith 2024-05-22 07:02:48 +01:00
parent 58d0b6299f
commit d1916d6569

20
init.el
View file

@ -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."