1 ;;; -*- lexical-binding: t -*-
4 (setq ediff-window-setup-function 'ediff-setup-windows-plain
5 ediff-split-window-function 'split-window-horizontally)
9 (require 'git-gutter-fringe)
11 (setq git-gutter:ask-p nil)
13 (defun git-gutter:popup-hunk (&optional diffinfo)
14 "MODIFIED!! Popup current diff hunk. Removed the `save-window-excursion' so I can control it with shackle."
16 (git-gutter:awhen (or diffinfo
17 (git-gutter:search-here-diffinfo git-gutter:diffinfos))
18 (pop-to-buffer (git-gutter:update-popuped-buffer it))))
20 (global-git-gutter-mode)
24 (defun my/git-reset-buffer ()
25 "Runs git-reset to unstage all changes on the current file. Then updates the git-gutter."
27 (call-process "git" nil nil nil "reset" (buffer-file-name))
29 (message "Finished git reset"))
35 (add-hook 'ibuffer-hook
37 (ibuffer-vc-set-filter-groups-by-vc-root)
38 (unless (eq ibuffer-sorting-mode 'alphabetic)
39 (ibuffer-do-sort-by-alphabetic))))
44 (setq vc-follow-symlinks t)