diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-07-25 02:47:45 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-07-25 02:47:45 +0100 |
commit | 033b38ce2d3a17ba56319898425ebfbf65d06e88 (patch) | |
tree | 469db5db6ecc8e95c946db3cff13c94fe62807ff | |
parent | 4f934a8a7cf312512d8aa3b0fefa5915744941c3 (diff) | |
download | dotfiles-033b38ce2d3a17ba56319898425ebfbf65d06e88.tar.gz dotfiles-033b38ce2d3a17ba56319898425ebfbf65d06e88.tar.bz2 dotfiles-033b38ce2d3a17ba56319898425ebfbf65d06e88.zip |
(Emacs/config)+diff-mode
-rw-r--r-- | Emacs/.config/emacs/config.org | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 5ab8f6d..fe4aa9e 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1466,6 +1466,26 @@ easy to guess what text I'd use. (insert-leader "p" #'lorem-ipsum-insert-paragraphs)) #+end_src +** diff mode +Oh diffs; the way of the ancient ones. Nowadays we use our newfangled +"pull requests" and "cool web interfaces" to handle change management +in our code repositories, but the old school projects use patches to +make code changes. I actually somewhat like patches, if only for +their simplicity in concept. + +[[https://git.aryadevchavali.com/dwm][dwm]] uses patches for adding +new features and Emacs has great functionality to work with patches +effectively. Here I configure ~diff-mode~, which provides most of this +cool stuff, to be a bit more ergonomic with ~evil~. +#+begin_src emacs-lisp +(use-package diff-mode + :general + (nmmap + :keymaps 'diff-mode-map + "}" #'diff-hunk-next + "{" #'diff-hunk-prev + "RET" #'diff-goto-source)) +#+end_src * Applications Emacs is basically an operating system whose primary datatype is text. Applications are interfaces/environments which serve a variety of |