This commit is contained in:
Sakooooo 2023-09-16 08:12:55 +00:00
parent 5a1181e878
commit 4640401716
Signed by: sako
GPG key ID: FE52FD65B76E4751
5 changed files with 29 additions and 14 deletions

View file

@ -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:

View file

@ -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

View file

@ -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;
}; };

View file

@ -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;
}; };

View file

@ -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