summary refs log tree commit diff
path: root/emacs.d/custom
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2020-04-12 18:14:30 -0700
committerFranck Cuny <franck.cuny@gmail.com>2020-04-12 18:14:30 -0700
commitfe87b4cc734882ceb330d0c9e43f2eed159f70d9 (patch)
tree1e5d95a8c2f43bb9dece0e21999aa80327c7a2bd /emacs.d/custom
parentmagit: improve performance for magit in large repo (diff)
downloademacs.d-fe87b4cc734882ceb330d0c9e43f2eed159f70d9.tar.gz
emacs/ui: use the default theme
Diffstat (limited to 'emacs.d/custom')
-rw-r--r--emacs.d/custom/fcuny-git.el15
-rw-r--r--emacs.d/custom/fcuny-ui.el5
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)