Drop nix-yapf-mode

we're using black now
This commit is contained in:
Griffin Smith 2020-05-26 10:29:02 -04:00
parent 77f6ed2206
commit 699da9cebd
2 changed files with 0 additions and 22 deletions

View file

@ -22,7 +22,6 @@
(load! "utils") (load! "utils")
(load! "company-sql") (load! "company-sql")
(load! "org-query") (load! "org-query")
;; (load! "nix-yapf-mode")
(load! "show-matching-paren") (load! "show-matching-paren")
(load! "irc") (load! "irc")
(load! "github-org") (load! "github-org")

View file

@ -1,21 +0,0 @@
;;; ~/.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)