diff options
-rw-r--r-- | config.el | 1 | ||||
-rw-r--r-- | nix-yapf-mode.el | 21 |
2 files changed, 0 insertions, 22 deletions
diff --git a/config.el b/config.el index 1ba55b2ad379..5dfcbb5cd848 100644 --- a/config.el +++ b/config.el @@ -22,7 +22,6 @@ (load! "utils") (load! "company-sql") (load! "org-query") -;; (load! "nix-yapf-mode") (load! "show-matching-paren") (load! "irc") (load! "github-org") diff --git a/nix-yapf-mode.el b/nix-yapf-mode.el deleted file mode 100644 index 9dba47bd3614..000000000000 --- a/nix-yapf-mode.el +++ /dev/null @@ -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) |