Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix-mode reindents multi-line yanks #4348

Closed
zopa opened this issue Jan 2, 2016 · 2 comments
Closed

nix-mode reindents multi-line yanks #4348

zopa opened this issue Jan 2, 2016 · 2 comments
Labels
stale marked as a stale issue/pr (usually by a bot)

Comments

@zopa
Copy link

zopa commented Jan 2, 2016

Say I have this nix snippet:

options = {

   enable = mkOption {
      type = types.bool;
      default = false;
      description = ''
        Whether to sync mail with offlineimap
      '';
    };
};

and starting from 'enable' I do 7yyP. I get:

    enable = mkOption {
              type = types.bool;
                        default = false;
                                  description = ''
                                              Whether to sync mail with offlineimap
                                                        '';
                                                                };

with the helpful message "Indenting region...done". So the first line aligns correctly, and subsequent lines are indented, leading whitespace and all.

Vanilla emacs with nix-mode.el loaded does not do this (using C-u 7 C-k and C-y).

System Info

  • OS: gnu/linux
  • Emacs: 24.5.2
  • Spacemacs: 0.104.8
  • Spacemacs branch: master (rev. 44d4525)
  • Distribution: spacemacs
  • Layers:
(chrome emacs-lisp haskell markdown nixos org)
@CestDiego
Copy link
Contributor

I'm at a loss, I thought this was nix-mode package's fault.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

2 participants