lmao
This commit is contained in:
parent
5a1181e878
commit
4640401716
5 changed files with 29 additions and 14 deletions
|
@ -509,8 +509,9 @@ make sure to setup authinfo
|
||||||
#+end_src
|
#+end_src
|
||||||
***** Nix
|
***** Nix
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package nix-mode
|
(use-package nix-mode
|
||||||
:mode "\\.nix\\'")
|
:hook (nix-mode . format-all-mode)
|
||||||
|
:mode "\\.nix\\'")
|
||||||
#+end_src
|
#+end_src
|
||||||
*** Commenter
|
*** Commenter
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -536,7 +537,8 @@ make sure to setup authinfo
|
||||||
*** Formatting
|
*** Formatting
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package format-all
|
(use-package format-all
|
||||||
:hook ('prog-mode-hook . 'format-all-mode))
|
:config
|
||||||
|
(setq format-all-formatters '(("Nix" . "alejandra"))))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Dired (quick file management in emacs)
|
** Dired (quick file management in emacs)
|
||||||
Dired is a built-in file manager for Emacs that does some pretty amazing things! Here are some key bindings you should try out:
|
Dired is a built-in file manager for Emacs that does some pretty amazing things! Here are some key bindings you should try out:
|
||||||
|
|
|
@ -434,6 +434,7 @@
|
||||||
:hook (js2-mode . lsp-deferred))
|
:hook (js2-mode . lsp-deferred))
|
||||||
|
|
||||||
(use-package nix-mode
|
(use-package nix-mode
|
||||||
|
:hook (nix-mode . format-all-mode)
|
||||||
:mode "\\.nix\\'")
|
:mode "\\.nix\\'")
|
||||||
|
|
||||||
(use-package evil-nerd-commenter
|
(use-package evil-nerd-commenter
|
||||||
|
@ -454,7 +455,8 @@
|
||||||
:hook (company-mode . company-box-mode))
|
:hook (company-mode . company-box-mode))
|
||||||
|
|
||||||
(use-package format-all
|
(use-package format-all
|
||||||
:hook ('prog-mode-hook . 'format-all-mode))
|
:config
|
||||||
|
(setq format-all-formatters '(("Nix" . "alejandra"))))
|
||||||
|
|
||||||
(use-package dired
|
(use-package dired
|
||||||
:ensure nil
|
:ensure nil
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
# nixd nix lsp using nix and nixpkgs
|
# nixd nix lsp using nix and nixpkgs
|
||||||
# where has this been my whole life
|
# where has this been my whole life
|
||||||
{ outputs, options, config, lib, pkgs, ...}:
|
|
||||||
with lib;
|
|
||||||
let
|
|
||||||
cfg = config.modules.dev.nixd;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
outputs,
|
||||||
|
options,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; let
|
||||||
|
cfg = config.modules.dev.nixd;
|
||||||
|
in {
|
||||||
options.modules.dev.nixd = {
|
options.modules.dev.nixd = {
|
||||||
enable = mkEnableOption false;
|
enable = mkEnableOption false;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,9 +1,14 @@
|
||||||
{ outputs, options, config, lib, pkgs, ...}:
|
|
||||||
with lib;
|
|
||||||
let
|
|
||||||
cfg = config.modules.work.libreoffice;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
|
outputs,
|
||||||
|
options,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; let
|
||||||
|
cfg = config.modules.work.libreoffice;
|
||||||
|
in {
|
||||||
options.modules.work.libreoffice = {
|
options.modules.work.libreoffice = {
|
||||||
enable = mkEnableOption false;
|
enable = mkEnableOption false;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# i wonder what the difference is
|
# i wonder what the difference is
|
||||||
|
|
||||||
{ outputs, options, config, lib, pkgs, ...}:
|
{ outputs, options, config, lib, pkgs, ...}:
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
|
|
Loading…
Reference in a new issue