🦵
This commit is contained in:
parent
99c7e79e73
commit
3c475f3ec4
2 changed files with 34 additions and 31 deletions
48
init.el
48
init.el
|
@ -71,7 +71,7 @@
|
|||
(interactive)
|
||||
(let* ((operation (completing-read "nixos-rebuild " '("switch" "boot" "test" "dry-activate")))
|
||||
(buffer-name (format "nixos-rebuild-%s" operation)))
|
||||
(async-shell-command (format "sudo nixos-rebuild --flake fleet %s --override-input ccrEmacs /home/ccr/.config/emacs" operation) buffer-name)))
|
||||
(async-shell-command (format "sudo nixos-rebuild --flake fleet %s --override-input ccrEmacs /home/ccr/.config/emacs -L" operation) buffer-name)))
|
||||
)
|
||||
|
||||
(use-package tramp
|
||||
|
@ -92,11 +92,6 @@
|
|||
(meow--prepare-face)
|
||||
(remove-hook 'after-make-frame-functions 'ccr/theme-init))))
|
||||
|
||||
;; (use-package solaire-mode
|
||||
;; :init
|
||||
;; (solaire-global-mode +1)
|
||||
;; :custom ((solaire-mode-themes-to-face-swap '(dracula))))
|
||||
|
||||
(use-package ligature
|
||||
:config
|
||||
(ligature-set-ligatures 't '("www"))
|
||||
|
@ -160,10 +155,7 @@
|
|||
:config (diredfl-global-mode))
|
||||
|
||||
(use-package treemacs
|
||||
:config
|
||||
;; FIXME when this is closed: https://github.com/hlissner/emacs-solaire-mode/issues/51
|
||||
(push '(treemacs-window-background-face . solaire-default-face) solaire-mode-remap-alist)
|
||||
(push '(treemacs-hl-line-face . solaire-hl-line-face) solaire-mode-remap-alist)
|
||||
:after solaire-mode
|
||||
:custom
|
||||
(treemacs-show-cursor nil)
|
||||
(treemacs-display-current-project-exclusively t)
|
||||
|
@ -461,15 +453,7 @@
|
|||
;; :config
|
||||
;; (global-nix-prettify-mode))
|
||||
|
||||
(use-package agenix
|
||||
:after (inheritenv)
|
||||
:custom
|
||||
;; FIXME 🤮
|
||||
((agenix-age-program "/nix/store/d1gkdszgmmcabz4pb06h8pvzkzml69g5-age-1.1.1/bin/age")
|
||||
(agenix-key-files '("~/.ssh/id_rsa" "~/.ssh/id_ed25519" "~/.ssh/mlabs")))
|
||||
:config
|
||||
(inheritenv-add-advice 'agenix--process-exit-code-and-output)
|
||||
)
|
||||
(use-package agenix)
|
||||
|
||||
(use-package nix-ts-mode
|
||||
:custom ((nix-ts-mode--embed-bash nil))
|
||||
|
@ -508,7 +492,9 @@
|
|||
|
||||
(use-package haskell-mode
|
||||
:hook ((haskell-mode . eglot-ensure)
|
||||
(haskell-mode . tree-sitter-hl-mode)))
|
||||
;; (haskell-mode . tree-sitter-hl-mode) # doesn't exist yet?
|
||||
)
|
||||
:mode "\\.hs\\'")
|
||||
|
||||
(use-package purescript-mode
|
||||
:custom ((project-vc-extra-root-markers '("spago.dhall")))
|
||||
|
@ -559,15 +545,15 @@
|
|||
:custom
|
||||
(eldoc-box-only-multiline nil)
|
||||
(eldoc-box-lighter "ElBox")
|
||||
:hook ((eglot-managed-mode . eldoc-box-hover-mode)
|
||||
(emacs-lisp-mode . eldoc-box-hover-mode)))
|
||||
:bind (("C-c h" . eldoc-box-help-at-point)))
|
||||
|
||||
(use-package diff-hl
|
||||
(use-package diff-hl
|
||||
:init
|
||||
(global-diff-hl-mode 1)
|
||||
(diff-hl-margin-mode 1))
|
||||
|
||||
(use-package envrc
|
||||
:hook (agenix-pre-mode . envrc-mode)
|
||||
:config
|
||||
(envrc-global-mode +1))
|
||||
|
||||
|
@ -683,6 +669,7 @@
|
|||
(completion-list-mode . hide)
|
||||
help-mode
|
||||
compilation-mode
|
||||
"^\\*Nix-REPL*\\*$" nix-repl-mode ;eshell as a popup
|
||||
"^\\*.+-eshell.*\\*$" eshell-mode ;eshell as a popup
|
||||
"^\\*shell.*\\*$" shell-mode ;shell as a popup
|
||||
"^\\*term.*\\*$" term-mode ;term as a popup
|
||||
|
@ -804,6 +791,7 @@ This is meant to be an helper to be called from the window manager."
|
|||
(use-package copilot
|
||||
:custom
|
||||
(copilot-max-char -1)
|
||||
(copilot-indent-offset-warning-disable 't)
|
||||
:hook (prog-mode org-mode)
|
||||
:bind (("C-<tab>" . copilot-accept-completion)))
|
||||
|
||||
|
@ -845,6 +833,20 @@ This is meant to be an helper to be called from the window manager."
|
|||
|
||||
(provide 'init)
|
||||
;;; init.el ends here
|
||||
(custom-set-variables
|
||||
;; custom-set-variables was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(magit-todos-insert-after '(bottom) nil nil "Changed by setter of obsolete option `magit-todos-insert-at'")
|
||||
'(org-fold-catch-invisible-edits 'show-and-error nil nil "Customized with use-package org")
|
||||
'(safe-local-variable-values '((copilot-mode 0) (copilot-mode -1))))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
)
|
||||
;; Local Variables:
|
||||
;; byte-compile-warnings: (not free-vars noruntime unresolved)
|
||||
;; End:
|
||||
|
|
|
@ -71,6 +71,7 @@ pkgs: epkgs: let
|
|||
cape
|
||||
which-key
|
||||
nix-mode
|
||||
agenix
|
||||
unisonlang-mode
|
||||
purescript-mode
|
||||
dhall-mode
|
||||
|
|
Reference in a new issue