Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

sample: List after in has no indentation #283

Open
ParetoOptimalDev opened this issue Feb 4, 2022 · 0 comments
Open

sample: List after in has no indentation #283

ParetoOptimalDev opened this issue Feb 4, 2022 · 0 comments
Labels
formatting Issue with the output format needs triage

Comments

@ParetoOptimalDev
Copy link

Input

{ pkgs ? import <nixpkgs> { overlays = [
    (import (builtins.fetchGit {
      url = "https://github.com/nix-community/emacs-overlay.git";
      ref = "master";
      rev = "37b7e04514d9f867d5a16b66ed112be6b674ddcb";
    }))
  ];
 }
}:
let
  myEmacs = pkgs.emacsGcc;
  emacsWithPackages = (pkgs.emacsPackagesNgGen myEmacs).emacsWithPackages;
in emacsWithPackages (epkgs:
                                              [ epkgs.melpaPackages.haskell-mode ])

Output

{ pkgs ? import <nixpkgs> {
    overlays = [
      (import (builtins.fetchGit {
        url = "https://github.com/nix-community/emacs-overlay.git";
        ref = "master";
        rev = "37b7e04514d9f867d5a16b66ed112be6b674ddcb";
      }))
    ];
  }
}:
let
  myEmacs = pkgs.emacsGcc;
  emacsWithPackages = (pkgs.emacsPackagesNgGen myEmacs).emacsWithPackages;
in
emacsWithPackages (epkgs:
[ epkgs.melpaPackages.haskell-mode ])

Desired output

{ pkgs ? import <nixpkgs> {
    overlays = [
      (import (builtins.fetchGit {
        url = "https://github.com/nix-community/emacs-overlay.git";
        ref = "master";
        rev = "37b7e04514d9f867d5a16b66ed112be6b674ddcb";
      }))
    ];
  }
}:
let
  myEmacs = pkgs.emacsGcc;
  emacsWithPackages = (pkgs.emacsPackagesNgGen myEmacs).emacsWithPackages;
in
emacsWithPackages (epkgs:
    [ epkgs.melpaPackages.haskell-mode ])

Or simply:

emacsWithPackages (epkgs:
- [ epkgs.melpaPackages.haskell-mode ])
+    [ epkgs.melpaPackages.haskell-mode ])
@ParetoOptimalDev ParetoOptimalDev added formatting Issue with the output format needs triage labels Feb 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
formatting Issue with the output format needs triage
Projects
None yet
Development

No branches or pull requests

1 participant