Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix-mode
base: 7d0907397637
Choose a base ref
...
head repository: NixOS/nix-mode
compare: a5bf79a563f9
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jan 4, 2021

  1. Use the located nixfmt binary for formatting.

    Allows use with `nixfmt` installed using direnv ([envrc-mode]).
    
    Before:
    
    1. `nix-format-buffer` checks for `nixfmt`: `(executable-find nix-nixfmt-bin)`
    2. If it's missing, error. Otherwise, disregard the path to `nixfmt`
       that we just found.
    3. Open a new buffer (if using `envrc-mode`, with a totally different
       `$PATH`) and try to run `nix-nixfmt-bin`.
    
    If you had `nixfmt` installed in your direnv but not globally, this
    gives an error: "Searching for program: No such file or directory, nixfmt".
    
    Now, we use the path that we just found and `call-process-region` on that.
    
    [envrc-mode]: https://github.com/purcell/envrc
    znewman01 committed Jan 4, 2021
    Copy the full SHA
    7556c03 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2021

  1. Merge pull request #120 from znewman01/master

    Use the located nixfmt binary for formatting.
    matthewbauer committed Jan 15, 2021
    Copy the full SHA
    a5bf79a View commit details
    Browse the repository at this point in the history