Many updates, too many to count

commit messages are for code, not config

I guess
This commit is contained in:
Griffin Smith 2020-03-26 15:03:25 -04:00
parent 23b179ad1d
commit 35c76e7098
24 changed files with 1533 additions and 427 deletions

21
nix-yapf-mode.el Normal file
View file

@ -0,0 +1,21 @@
;;; ~/.doom.d/nix-yapf-mode.el -*- lexical-binding: t; -*-
(defun +grfn/yapfify-call-bin (input-buffer output-buffer start-line end-line)
(with-current-buffer input-buffer
(call-process-region
(point-min)
(point-max)
"nix-shell"
nil
(list output-buffer nil)
nil
"/home/griffin/code/urb/grid/yapf.nix"
"--run"
(concat
"yapf -l "
(number-to-string start-line)
"-"
(number-to-string end-line)))))
(advice-add #'yapfify-call-bin :override #'+grfn/yapfify-call-bin)