summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--emacs.d/custom/fcuny-edit.el27
1 files changed, 24 insertions, 3 deletions
diff --git a/emacs.d/custom/fcuny-edit.el b/emacs.d/custom/fcuny-edit.el
index 8284072..bdbe29b 100644
--- a/emacs.d/custom/fcuny-edit.el
+++ b/emacs.d/custom/fcuny-edit.el
@@ -25,12 +25,33 @@
   :ensure t
   :custom
   (show-paren-delay 0)
+  (show-paren-when-point-inside-paren t)
+  (show-paren-when-point-in-periphery t)
   :config
   (show-paren-mode 1))
 
-(use-package general
+(use-package ediff
   :config
-  (general-define-key
-   "M-j" 'join-line))
+  (defhydra hydra-ediff (:color blue)
+  "
+^Buffers           Files               VC                Ediff regions
+----------------------------------------------------------------------
+_b_uffers          _f_iles (_=_)       _r_evisions       _l_inewise
+_B_uffers (3-way)  _F_iles (3-way)                       _w_ordwise
+                   _c_urrent file
+"
+  ("b" ediff-buffers)
+  ("B" ediff-buffers3)
+  ("=" ediff-files)
+  ("f" ediff-files)
+  ("F" ediff-files3)
+  ("c" ediff-current-file)
+  ("r" ediff-revision)
+  ("l" ediff-regions-linewise)
+  ("w" ediff-regions-wordwise))
+
+  (global-set-key (kbd "C-c d") 'hydra-ediff/body))
+
+(global-set-key (kbd "M-j") 'join-line)
 
 (provide 'fcuny-edit)