From ccd53a221194093fc7f8228725584c5b0320aeb8 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 23 Mar 2022 09:46:33 -0700 Subject: rename fcuny-git to my-git --- emacs/custom/fcuny-git.el | 53 ----------------------------------------------- emacs/custom/my-git.el | 51 +++++++++++++++++++++++++++++++++++++++++++++ emacs/init.el | 2 +- 3 files changed, 52 insertions(+), 54 deletions(-) delete mode 100644 emacs/custom/fcuny-git.el create mode 100644 emacs/custom/my-git.el (limited to 'emacs') diff --git a/emacs/custom/fcuny-git.el b/emacs/custom/fcuny-git.el deleted file mode 100644 index 83a477d..0000000 --- a/emacs/custom/fcuny-git.el +++ /dev/null @@ -1,53 +0,0 @@ -;;; fcuny-git --- configures git for emacs -;;; Commentary: -;;; Code: -(require 'fcuny-defuns) -(require 'fcuny-vars) -(require 'use-package) - -(use-package git-modes - :ensure t - :mode - ("/\\.gitconfig\\'" . gitconfig-mode) - ("/\\.gitmodules\\'" . gitconfig-mode) - ("/\\.git/config\\'" . gitconfig-mode) - ("/\\.gitignore\\'" . gitignore-mode) - ("/.dockerignore\\'" . gitignore-mode) - ("/\\.gitattributes//" . gitattributes-mode)) - -(use-package magit - :ensure t - :after (flyspell) - :bind (("C-x g" . magit-status)) - :custom - (vc-follow-symlinks t) - (magit-completing-read-function 'ivy-completing-read)) - -(use-package magit-repos - :ensure nil - :after (magit) - :custom - (magit-repository-directories '(("~/workspace" . 1)))) - -(use-package git-commit - :ensure t - :after magit - :hook (git-commit-mode . fcuny/git-commit-auto-fill) - :custom - (git-commit-summary-max-length 50) - :preface - (defun fcuny/git-commit-auto-fill () - "Ensures that the commit body does not exceed 72 characters." - (setq-local fill-column 72) - (setq-local comment-auto-fill-only-comments nil))) - -(use-package git-link - :ensure t - :after magit - :bind (("C-c g l" . git-link) - ("C-c g a" . git-link-commit)) - :custom - (git-link-open-in-browser 't)) - -(provide 'fcuny-git) -;;; fcuny-git.el ends here diff --git a/emacs/custom/my-git.el b/emacs/custom/my-git.el new file mode 100644 index 0000000..eb00113 --- /dev/null +++ b/emacs/custom/my-git.el @@ -0,0 +1,51 @@ +;;; my-git --- configures git for emacs +;;; Commentary: +;;; Code: +(require 'use-package) + +(use-package git-modes + :ensure t + :mode + ("/\\.gitconfig\\'" . gitconfig-mode) + ("/\\.gitmodules\\'" . gitconfig-mode) + ("/\\.git/config\\'" . gitconfig-mode) + ("/\\.gitignore\\'" . gitignore-mode) + ("/.dockerignore\\'" . gitignore-mode) + ("/\\.gitattributes//" . gitattributes-mode)) + +(use-package magit + :ensure t + :after (flyspell) + :bind (("C-x g" . magit-status)) + :custom + (vc-follow-symlinks t) + (magit-completing-read-function 'ivy-completing-read)) + +(use-package magit-repos + :ensure nil + :after (magit) + :custom + (magit-repository-directories '(("~/workspace" . 1)))) + +(use-package git-commit + :ensure t + :after magit + :hook (git-commit-mode . my/git-commit-auto-fill) + :custom + (git-commit-summary-max-length 50) + :preface + (defun my/git-commit-auto-fill () + "Ensures that the commit body does not exceed 72 characters." + (setq-local fill-column 72) + (setq-local comment-auto-fill-only-comments nil))) + +(use-package git-link + :ensure t + :after magit + :bind (("C-c g l" . git-link) + ("C-c g a" . git-link-commit)) + :custom + (git-link-open-in-browser 't)) + +(provide 'my-git) +;;; my-git.el ends here diff --git a/emacs/init.el b/emacs/init.el index cd4d7bc..d77ed96 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -43,7 +43,7 @@ (require 'my-navigation (expand-file-name "custom/my-navigation" user-emacs-directory)) (require 'my-edit (expand-file-name "custom/my-edit" user-emacs-directory)) (require 'my-text (expand-file-name "custom/my-text" user-emacs-directory)) -(require 'fcuny-git (expand-file-name "custom/fcuny-git" user-emacs-directory)) +(require 'my-git (expand-file-name "custom/my-git" user-emacs-directory)) (require 'fcuny-org (expand-file-name "custom/fcuny-org" user-emacs-directory)) (require 'fcuny-conf (expand-file-name "custom/fcuny-conf" user-emacs-directory)) (require 'fcuny-prog (expand-file-name "custom/fcuny-prog" user-emacs-directory)) -- cgit 1.4.1