Adding personal elisp functions.

This commit is contained in:
Dorian Wood 2021-04-11 20:23:58 -04:00
parent 741233bdef
commit 07f2748d34
2 changed files with 20 additions and 0 deletions

13
.gitconfig Normal file
View File

@ -0,0 +1,13 @@
[diff]
tool = ediff
guitool = ediff
[difftool "ediff"]
cmd = /PATH/TO/ediff.sh $LOCAL $REMOTE $MERGED
[merge]
tool = ediff
[mergetool "ediff"]
cmd = /PATH/TO/ediff.sh $LOCAL $REMOTE $MERGED $BASE
trustExitCode = true

View File

@ -0,0 +1,7 @@
;;; spells.el -*- lexical-binding: t; -*-
(defun read-lines (filePath)
"Return a list of lines of a file at filePath"
(with-temp-buffer
(insert-file-contents filePath)
(split-string (buffer-string) "\n" t)))