diff options
author | Franck Cuny <franck.cuny@gmail.com> | 2020-04-12 18:14:30 -0700 |
---|---|---|
committer | Franck Cuny <franck.cuny@gmail.com> | 2020-04-12 18:14:30 -0700 |
commit | fe87b4cc734882ceb330d0c9e43f2eed159f70d9 (patch) | |
tree | 1e5d95a8c2f43bb9dece0e21999aa80327c7a2bd | |
parent | magit: improve performance for magit in large repo (diff) | |
download | emacs.d-fe87b4cc734882ceb330d0c9e43f2eed159f70d9.tar.gz |
emacs/ui: use the default theme
Diffstat (limited to '')
-rw-r--r-- | emacs.d/custom/fcuny-git.el | 15 | ||||
-rw-r--r-- | emacs.d/custom/fcuny-ui.el | 5 |
2 files changed, 12 insertions, 8 deletions
diff --git a/emacs.d/custom/fcuny-git.el b/emacs.d/custom/fcuny-git.el index 088b895..48409a7 100644 --- a/emacs.d/custom/fcuny-git.el +++ b/emacs.d/custom/fcuny-git.el @@ -11,13 +11,22 @@ (use-package magit :ensure t - :mode (("\\COMMIT_EDITMSG\\'" . text-mode) - ("\\MERGE_MSG\\'" . text-mode)) :after (flyspell) :bind (("C-x g" . magit-status)) :custom + (vc-follow-symlinks t)) + +(use-package git-commit + :ensure t + :after magit + :hook (git-commit-mode . fcuny/git-commit-auto-fill) + :custom (git-commit-summary-max-length 50) - (fill-column 72)) + :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))) ;; https://magit.vc/manual/magit/Per_002dRepository-Configuration.html ;; we don't want to refresh buffers in source. This should help with diff --git a/emacs.d/custom/fcuny-ui.el b/emacs.d/custom/fcuny-ui.el index cfccae7..1226242 100644 --- a/emacs.d/custom/fcuny-ui.el +++ b/emacs.d/custom/fcuny-ui.el @@ -36,9 +36,4 @@ (setq uniquify-buffer-name-style 'forward) (setq uniquify-separator "/")) -(use-package modus-operandi-theme - :ensure t - :config - (load-theme 'modus-operandi t)) - (provide 'fcuny-ui) |