games, utils, emacs
This commit is contained in:
parent
20e3575415
commit
ff3acbecae
3 changed files with 83 additions and 30 deletions
|
@ -118,8 +118,8 @@ function filelink
|
||||||
echo "file://$(realpath $argv)"
|
echo "file://$(realpath $argv)"
|
||||||
end
|
end
|
||||||
alias xpy '~/Aims/rust/x.py'
|
alias xpy '~/Aims/rust/x.py'
|
||||||
alias sbcl "rlwrap sbcl"
|
# alias sbcl "rlwrap sbcl"
|
||||||
alias guile "rlwrap guile"
|
# alias guile "rlwrap guile"
|
||||||
alias chez "rlwrap chez"
|
alias chez "rlwrap chez"
|
||||||
#alias clj 'clojure -Sdeps "{:deps {com.bhauman/rebel-readline {:mvn/version \"0.1.4\"} $args}}" -m rebel-readline.main'
|
#alias clj 'clojure -Sdeps "{:deps {com.bhauman/rebel-readline {:mvn/version \"0.1.4\"} $args}}" -m rebel-readline.main'
|
||||||
alias csi "rlwrap chicken-csi"
|
alias csi "rlwrap chicken-csi"
|
||||||
|
|
21
home.nix
21
home.nix
|
@ -27,15 +27,20 @@ in
|
||||||
brogue
|
brogue
|
||||||
# cataclysm-dda
|
# cataclysm-dda
|
||||||
keeperrl
|
keeperrl
|
||||||
|
# adom
|
||||||
openrct2
|
openrct2
|
||||||
# not yet
|
# not yet
|
||||||
# celeste64
|
# celeste64
|
||||||
dolphin-emu
|
tetrio-desktop
|
||||||
# foliate
|
# foliate
|
||||||
# thunderbird
|
# thunderbird
|
||||||
|
prismlauncher
|
||||||
|
|
||||||
starship
|
starship
|
||||||
eza
|
eza
|
||||||
dmenu
|
dmenu
|
||||||
|
watchexec
|
||||||
|
wl-clipboard
|
||||||
xsel
|
xsel
|
||||||
manix
|
manix
|
||||||
shellcheck
|
shellcheck
|
||||||
|
@ -47,13 +52,15 @@ in
|
||||||
sbcl
|
sbcl
|
||||||
chez
|
chez
|
||||||
guile
|
guile
|
||||||
|
gambit
|
||||||
racket
|
racket
|
||||||
clojure
|
clojure
|
||||||
ruby_3_3
|
ruby_3_3
|
||||||
gcc
|
gcc
|
||||||
jq
|
jq
|
||||||
|
file
|
||||||
|
fd
|
||||||
|
|
||||||
watchexec
|
|
||||||
|
|
||||||
cargo
|
cargo
|
||||||
clippy
|
clippy
|
||||||
|
@ -70,6 +77,7 @@ in
|
||||||
steam-run
|
steam-run
|
||||||
gamemode
|
gamemode
|
||||||
rare
|
rare
|
||||||
|
minigalaxy
|
||||||
slipstream
|
slipstream
|
||||||
obs-studio
|
obs-studio
|
||||||
# drm more like pooprm
|
# drm more like pooprm
|
||||||
|
@ -229,6 +237,7 @@ in
|
||||||
safe = {
|
safe = {
|
||||||
directory = "*";
|
directory = "*";
|
||||||
};
|
};
|
||||||
|
core.autocrlf = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -344,6 +353,7 @@ in
|
||||||
rainbow-delimiters
|
rainbow-delimiters
|
||||||
geiser-chez
|
geiser-chez
|
||||||
geiser-guile
|
geiser-guile
|
||||||
|
geiser-gambit
|
||||||
macrostep-geiser
|
macrostep-geiser
|
||||||
evil
|
evil
|
||||||
evil-leader
|
evil-leader
|
||||||
|
@ -355,14 +365,19 @@ in
|
||||||
elixir-mode
|
elixir-mode
|
||||||
gcmh
|
gcmh
|
||||||
|
|
||||||
slime
|
sly
|
||||||
general
|
general
|
||||||
lispyville
|
lispyville
|
||||||
|
|
||||||
|
clojure-mode
|
||||||
|
cider
|
||||||
|
|
||||||
haskell-mode
|
haskell-mode
|
||||||
lsp-haskell
|
lsp-haskell
|
||||||
|
|
||||||
direnv
|
direnv
|
||||||
|
|
||||||
|
esup
|
||||||
];
|
];
|
||||||
# apparently errors in the config matter? nvm?
|
# apparently errors in the config matter? nvm?
|
||||||
extraConfig = (import ./init.el.nix) pkgs;
|
extraConfig = (import ./init.el.nix) pkgs;
|
||||||
|
|
88
init.el.nix
88
init.el.nix
|
@ -748,7 +748,8 @@ If the new path's directories does not exist, create them."
|
||||||
(lisp-interaction-mode . enable-paredit-mode)
|
(lisp-interaction-mode . enable-paredit-mode)
|
||||||
(scheme-mode . enable-paredit-mode)
|
(scheme-mode . enable-paredit-mode)
|
||||||
;; (inferior-scheme-mode . enable-paredit-mode)
|
;; (inferior-scheme-mode . enable-paredit-mode)
|
||||||
(slime-repl-mode . enable-paredit-mode)
|
;(slime-repl-mode . enable-paredit-mode)
|
||||||
|
(sly-repl-mode . enable-paredit-mode)
|
||||||
(clojure-mode . enable-paredit-mode)
|
(clojure-mode . enable-paredit-mode)
|
||||||
(clojurescript-mode . enable-paredit-mode)
|
(clojurescript-mode . enable-paredit-mode)
|
||||||
(cider-repl-mode . enable-paredit-mode)
|
(cider-repl-mode . enable-paredit-mode)
|
||||||
|
@ -769,7 +770,7 @@ If the new path's directories does not exist, create them."
|
||||||
; (use-package geiser-chez
|
; (use-package geiser-chez
|
||||||
; :ensure t
|
; :ensure t
|
||||||
; :config
|
; :config
|
||||||
(setq geiser-active-implementations '(chez guile))
|
(setq geiser-active-implementations '(chez guile gambit))
|
||||||
;(setq geiser-chez-binary "/usr/bin/chez")
|
;(setq geiser-chez-binary "/usr/bin/chez")
|
||||||
(setq geiser-repl-query-on-kill-p nil)
|
(setq geiser-repl-query-on-kill-p nil)
|
||||||
; )
|
; )
|
||||||
|
@ -799,17 +800,30 @@ If the new path's directories does not exist, create them."
|
||||||
(general-add-hook '(emacs-lisp-mode-hook lisp-mode-hook scheme-mode-hook) #'lispyville-mode)
|
(general-add-hook '(emacs-lisp-mode-hook lisp-mode-hook scheme-mode-hook) #'lispyville-mode)
|
||||||
:config)
|
:config)
|
||||||
|
|
||||||
(use-package slime :ensure t
|
;(use-package slime :ensure t
|
||||||
|
; :init
|
||||||
|
; (setq slime-contribs '(slime-fancy)
|
||||||
|
; slime-complete-symbol-function 'slime-fuzzy-complete-symbol
|
||||||
|
; slime-net-coding-system 'utf-8-unix
|
||||||
|
; slime-lisp-implementations '((sbcl ("${pkgs.sbcl}/bin/sbcl"))))
|
||||||
|
; :config
|
||||||
|
; (setq common-lisp-hyperspec-root "${pkgs.sbclPackages.hyperspec}/docs/"
|
||||||
|
; ;common-lisp-hyperspec-symbol-table (concat common-lisp-hyperspec-root "Data/Map_Sym.txt")
|
||||||
|
; ;common-lisp-hyperspec-issuex-table (concat common-lisp-hyperspec-root "Data/Map_IssX.txt")
|
||||||
|
; ))
|
||||||
|
|
||||||
|
(use-package sly :ensure t
|
||||||
:init
|
:init
|
||||||
(setq slime-contribs '(slime-fancy)
|
(setq inferior-lisp-program "${pkgs.sbcl}/bin/sbcl")
|
||||||
slime-complete-symbol-function 'slime-fuzzy-complete-symbol
|
|
||||||
slime-net-coding-system 'utf-8-unix
|
|
||||||
slime-lisp-implementations '((sbcl ("${pkgs.sbcl}/bin/sbcl"))))
|
|
||||||
:config
|
:config
|
||||||
(setq common-lisp-hyperspec-root "${pkgs.sbclPackages.hyperspec}/docs/"
|
(setq common-lisp-hyperspec-root "${pkgs.sbclPackages.hyperspec}/docs/"
|
||||||
;common-lisp-hyperspec-symbol-table (concat common-lisp-hyperspec-root "Data/Map_Sym.txt")
|
;common-lisp-hyperspec-symbol-table (concat common-lisp-hyperspec-root "Data/Map_Sym.txt")
|
||||||
;common-lisp-hyperspec-issuex-table (concat common-lisp-hyperspec-root "Data/Map_IssX.txt")
|
;common-lisp-hyperspec-issuex-table (concat common-lisp-hyperspec-root "Data/Map_IssX.txt")
|
||||||
))
|
)
|
||||||
|
;(define-key sly-prefix-map (kbd "<down>") 'sly-next-completion)
|
||||||
|
)
|
||||||
|
|
||||||
|
(add-hook 'sly-db-hook 'turn-off-evil-mode)
|
||||||
|
|
||||||
;;; Emacs Bedrock
|
;;; Emacs Bedrock
|
||||||
;;;
|
;;;
|
||||||
|
@ -891,51 +905,51 @@ If the new path's directories does not exist, create them."
|
||||||
(global-evil-leader-mode)
|
(global-evil-leader-mode)
|
||||||
(setq evil-leader/leader "<SPC>")
|
(setq evil-leader/leader "<SPC>")
|
||||||
(evil-leader/set-key
|
(evil-leader/set-key
|
||||||
; very general
|
; very general
|
||||||
"w" 'evil-save
|
"w" 'evil-save
|
||||||
; u => unicode
|
; u => unicode
|
||||||
"u" 'insert-char
|
"u" 'insert-char
|
||||||
|
|
||||||
"g" 'magit
|
"g" 'magit
|
||||||
|
|
||||||
; mgmt of modes i want to toggle more often
|
; mgmt of modes i want to toggle more often
|
||||||
"mp" 'paredit-mode
|
"mp" 'paredit-mode
|
||||||
"ms" 'text-scale-adjust
|
"ms" 'text-scale-adjust
|
||||||
|
|
||||||
; buffers
|
; buffers
|
||||||
"be" 'counsel-switch-buffer
|
"be" 'counsel-switch-buffer
|
||||||
;; gonna try to stick to C-w commands
|
;; gonna try to stick to C-w commands
|
||||||
;; "bn" 'evil-buffer
|
;; "bn" 'evil-buffer
|
||||||
;; "bs" 'evil-split-buffer
|
;; "bs" 'evil-split-buffer
|
||||||
;; "bv" 'evil-window
|
;; "bv" 'evil-window
|
||||||
|
|
||||||
; config mgmt
|
; config mgmt
|
||||||
"ce" 'open-init.el
|
"ce" 'open-init.el
|
||||||
; "cev" 'open-vim-like.el
|
; "cev" 'open-vim-like.el
|
||||||
; "ces" 'open-scheme.el
|
; "ces" 'open-scheme.el
|
||||||
"cr" 'use-new-config
|
"cr" 'use-new-config
|
||||||
|
|
||||||
; scheme
|
; scheme
|
||||||
; si => scheme inferior (avoids conflicts)
|
; si => scheme inferior (avoids conflicts)
|
||||||
"sir" 'geiser-chez
|
"sir" 'geiser-chez
|
||||||
"sil" 'geiser-load-file
|
"sil" 'geiser-load-file
|
||||||
; it's funny how you find the thing you really need eventually
|
; it's funny how you find the thing you really need eventually
|
||||||
"sii" 'geiser-repl-switch
|
"sii" 'geiser-repl-switch
|
||||||
|
|
||||||
; ss => scheme send
|
; ss => scheme send
|
||||||
"sss" 'geiser-eval-last-sexp
|
"sss" 'geiser-eval-last-sexp
|
||||||
;; "ssr" 'geiser-eval-region
|
;; "ssr" 'geiser-eval-region
|
||||||
"ssd" 'geiser-eval-definition
|
"ssd" 'geiser-eval-definition
|
||||||
; ssa => scheme send all
|
; ssa => scheme send all
|
||||||
"ssa" 'geiser-eval-buffer
|
"ssa" 'geiser-eval-buffer
|
||||||
|
|
||||||
; scheme/lispy-editing
|
; scheme/lispy-editing
|
||||||
"swp" 'paredit-wrap-round
|
"swp" 'paredit-wrap-round
|
||||||
"swb" 'paredit-wrap-square
|
"swb" 'paredit-wrap-square
|
||||||
"swc" 'paredit-wrap-curly
|
"swc" 'paredit-wrap-curly
|
||||||
"swa" 'paredit-wrap-angled
|
"swa" 'paredit-wrap-angled
|
||||||
|
|
||||||
; gonna just port most of my vscode stuff even though i don't hate the C-<left> stuff
|
; gonna just port most of my vscode stuff even though i don't hate the C-<left> stuff
|
||||||
"sh" 'paredit-backward-slurp-sexp
|
"sh" 'paredit-backward-slurp-sexp
|
||||||
"sl" 'paredit-forward-slurp-sexp
|
"sl" 'paredit-forward-slurp-sexp
|
||||||
"bh" 'paredit-backward-barf-sexp
|
"bh" 'paredit-backward-barf-sexp
|
||||||
|
@ -947,22 +961,43 @@ If the new path's directories does not exist, create them."
|
||||||
"sH" 'backward-sexp
|
"sH" 'backward-sexp
|
||||||
"sL" 'forward-sexp
|
"sL" 'forward-sexp
|
||||||
|
|
||||||
; sort of out-of-place feeling
|
; sort of out-of-place feeling
|
||||||
"sb" 'geiser-squarify
|
"sb" 'geiser-squarify
|
||||||
|
|
||||||
"sd" 'geiser-doc-symbol-at-point
|
"sd" 'geiser-doc-symbol-at-point
|
||||||
|
|
||||||
; killing is common enough to be worth its own prefix
|
; killing is common enough to be worth its own prefix
|
||||||
; non-lisp killing is more than covered by normal vim stuff lol
|
; non-lisp killing is more than covered by normal vim stuff lol
|
||||||
"kh" 'backward-kill-sexp
|
"kh" 'backward-kill-sexp
|
||||||
"kl" 'kill-sexp
|
"kl" 'kill-sexp
|
||||||
|
|
||||||
; irc
|
; irc
|
||||||
"il" 'erc-tls
|
"il" 'erc-tls
|
||||||
"ij" 'erc-join-channel
|
"ij" 'erc-join-channel
|
||||||
"ic" 'erc-switch-to-buffer
|
"ic" 'erc-switch-to-buffer
|
||||||
"is" 'erc-server-select
|
"is" 'erc-server-select
|
||||||
"ia" 'erc-track-switch-buffer
|
"ia" 'erc-track-switch-buffer
|
||||||
|
|
||||||
|
;clojure
|
||||||
|
"cii" 'cider-jack-in
|
||||||
|
"cim" 'cider-inspire-me
|
||||||
|
|
||||||
|
; cs => clojure send
|
||||||
|
; css lol
|
||||||
|
"css" 'cider-eval-last-sexp
|
||||||
|
"csa" 'cider-eval-buffer
|
||||||
|
"csd" 'cider-eval-defun-at-point
|
||||||
|
"csn" 'cider-ns-reload
|
||||||
|
|
||||||
|
; cf => clojure fix?
|
||||||
|
"cfl" 'clojure-move-to-let
|
||||||
|
"cfp" 'clojure-cyle-privacy
|
||||||
|
"cfi" 'clojure-toggle-ignore
|
||||||
|
"cff" 'clojure-thread-first-all
|
||||||
|
"cfl" 'clojure-thread-last-all
|
||||||
|
|
||||||
|
; cd => clojure doc
|
||||||
|
"cd" 'cider-doc
|
||||||
))
|
))
|
||||||
|
|
||||||
(use-package evil-goggles
|
(use-package evil-goggles
|
||||||
|
@ -1032,4 +1067,7 @@ If the new path's directories does not exist, create them."
|
||||||
(use-package lsp-haskell
|
(use-package lsp-haskell
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
|
||||||
|
; yay
|
||||||
|
(setq confirm-kill-processes nil)
|
||||||
|
(setq auto-save-interval 100)
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue