Commit Graph

19 Commits

Author SHA1 Message Date
6f9b7a2889 lang/nix: add ivy version of helm-nixos-options
And make it nix-mode's lookup-documentation handler, so pressing `K` on
an option will prefill the ivy search.
2019-09-21 13:57:26 -04:00
76cacb5bfe 💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
3bbd4e3008 use default nix-indent-function
See https://github.com/NixOS/nix-mode/pull/79
2019-06-15 15:37:32 +03:00
8e4635bdc8 set nix-indent-function to #'nix-indent-line 2019-01-22 10:44:05 +11:00
3f195614d9 Normalize :leader/:localleader keybinds
Evil states no longer apply to them. Also removes x-alt-keysym.
2018-12-23 23:54:27 -05:00
e0f2c260a1 Update lang/nix to reflect changes upstream
+ Restore nix-mode entry in auto-mode-alist
+ Add .drv entry to auto-mode-alist
+ Minor refactor for def-package! blocks
2018-08-13 21:47:55 +02:00
7a81f46b39 Refactor lang/nix
+ Move set-company-backend! out of conditional (it is an autodef, meaning it will simply no-op if the company module is disabled)
+ Removed helm-nixos-options config, because `helm-nixos-options` is already autoloaded by the package
+ Simplify map! usage
+ Move nix-mode to the top, as it is the focal package of this module
2018-07-17 13:23:33 +02:00
bd5d305e06 Added doc check for nix package manager 2018-07-17 10:03:17 +02:00
0aa351842c clean-up + add helm-nixos-options 2018-07-17 09:56:52 +02:00
6b23692985 Whoops! this is available on melpa after all 2018-07-16 17:15:05 +02:00
8ed5ea56d9 Added doctor check for nixfmt 2018-07-16 17:13:53 +02:00
1dac12c9c0 Add bindings for nix-mode 2018-07-16 17:10:57 +02:00
bdbe942fb9 Make available nix-repl-show 2018-07-16 17:10:18 +02:00
d3c24e51f1 Add support for nix-update 2018-07-16 17:09:28 +02:00
39419dee17 Added company backend for nixos-options 2018-07-16 15:49:11 +02:00
09cb4f6716 Major refactor & optimization of how modules load their packages
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.

In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.

Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.

This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
4afcd7eadf lang/nix: no-byte-compile; add file header 2018-03-27 19:09:22 -04:00
2ac08a13e0 lang/nix: install nix-mode package 2018-03-27 10:28:37 -06:00
89223e0a2f lang/nix: initial commit 2017-12-02 00:05:51 +00:00