Skip to content

Commit

Permalink
feat(tools): make Chezmoi obsolete (migrated the simpler GNU Stow)
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 12, 2023
1 parent a544398 commit 609781a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 27 deletions.
27 changes: 0 additions & 27 deletions modules/me-tools.el
Original file line number Diff line number Diff line change
Expand Up @@ -132,33 +132,6 @@
(if (functionp pass) (funcall pass) pass))
""))))

(use-package chezmoi
:straight (chezmoi :files (:defaults "extensions/*.el"))
:when (executable-find "chezmoi")
:commands
chezmoi-find chezmoi-write chezmoi-diff chezmoi-open-other
chezmoi-sync-files chezmoi-magit-status
:init
(+map! :infix "o"
"c" '(nil :wk "chezmoi")
"cf" #'chezmoi-find
"cw" #'chezmoi-write
"cd" #'chezmoi-diff
"co" #'chezmoi-open-other
"cs" #'chezmoi-sync-files))

(use-package chezmoi-ediff
:when (executable-find "chezmoi")
:commands chezmoi-ediff
:init
(+map! "oce" #'chezmoi-ediff))

(use-package chezmoi-magit
:when (executable-find "chezmoi")
:commands chezmoi-magit-status
:init
(+map! "ocg" #'chezmoi-magit-status))

(use-package with-editor
:straight t
:hook ((shell-mode eshell-mode term-exec vterm-mode) . with-editor-export-editor)
Expand Down
42 changes: 42 additions & 0 deletions modules/obsolete/me-chezmoi.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
;;; me-chezmoi.el --- Dotfiles management with chezmoi -*- lexical-binding: t; -*-

;; Copyright (C) 2022-2023 Abdelhak Bougouffa

;; Author: Abdelhak Bougouffa (concat "abougouffa" "@" "fedora" "project" "." "org")

;;; Commentary:

;;; Code:

(use-package chezmoi
:straight (chezmoi :files (:defaults "extensions/*.el"))
:when (executable-find "chezmoi")
:commands
chezmoi-find chezmoi-write chezmoi-diff chezmoi-open-other
chezmoi-sync-files chezmoi-magit-status
:init
(+map! :infix "o"
"c" '(nil :wk "chezmoi")
"cf" #'chezmoi-find
"cw" #'chezmoi-write
"cd" #'chezmoi-diff
"co" #'chezmoi-open-other
"cs" #'chezmoi-sync-files))

(use-package chezmoi-ediff
:when (executable-find "chezmoi")
:commands chezmoi-ediff
:init
(+map! "oce" #'chezmoi-ediff))

(use-package chezmoi-magit
:when (executable-find "chezmoi")
:commands chezmoi-magit-status
:init
(+map! "ocg" #'chezmoi-magit-status))


(provide 'obsolete/me-chezmoi)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; me-chezmoi.el ends here

0 comments on commit 609781a

Please sign in to comment.