Many updates, too many to count
commit messages are for code, not config I guess
This commit is contained in:
parent
23b179ad1d
commit
35c76e7098
24 changed files with 1533 additions and 427 deletions
21
nix-yapf-mode.el
Normal file
21
nix-yapf-mode.el
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue