From 699da9cebdeefc2fdba47dbe98fa95752d6472c1 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Tue, 26 May 2020 10:29:02 -0400 Subject: [PATCH] Drop nix-yapf-mode we're using black now --- config.el | 1 - nix-yapf-mode.el | 21 --------------------- 2 files changed, 22 deletions(-) delete mode 100644 nix-yapf-mode.el diff --git a/config.el b/config.el index 1ba55b2ad..5dfcbb5cd 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 9dba47bd3..000000000 --- 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)