fix: LaTeX and JIS keyboard support. Remove karabiner

This commit is contained in:
Leni Aniva 2024-12-04 13:42:55 -08:00
parent ea608b0bb9
commit 9482790891
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
4 changed files with 36 additions and 3 deletions

View File

@ -160,6 +160,10 @@ Modifications to the default key bindings to mimic spacemacs
(map! :nvi "C" nil) ; remove this one weird binding (map! :nvi "C" nil) ; remove this one weird binding
(map! "<f12>" #'toggle-input-method) (map! "<f12>" #'toggle-input-method)
; Remap JIS yen key to backslash
(global-set-key (kbd "M-¥") (kbd "\\"))
(global-set-key (kbd "C-M-¥") (kbd "C-\\"))
#+end_src #+end_src
** Font settings ** Font settings

View File

@ -2,7 +2,17 @@
tex = pkgs.texlive.combine { tex = pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-medium inherit (pkgs.texlive) scheme-medium
latexmk latexmk
amsmath; amsmath
cancel
hyphenat
datetime2
makecell
tikzmark
tcolorbox
environ
tikzfill
pdfcol
;
}; };
in in
{ {
@ -25,7 +35,7 @@ in
rustup rustup
elan elan
poetry poetry
tex (import ./tex.nix { inherit pkgs; })
cmake cmake
ispell ispell
@ -39,7 +49,7 @@ in
# Auto upgrade nix package and the daemon service. # Auto upgrade nix package and the daemon service.
services = { services = {
nix-daemon.enable = true; nix-daemon.enable = true;
karabiner-elements.enable = true; #karabiner-elements.enable = true;
sketchybar = { sketchybar = {
enable = true; enable = true;
}; };

View File

@ -40,6 +40,7 @@
"slack" "slack"
"discord" "discord"
"zoom" "zoom"
"zulip"
# Browsing # Browsing
"firefox" "firefox"
@ -58,6 +59,7 @@
# Fonts # Fonts
"font-noto-mono" "font-noto-mono"
"font-source-code-pro"
]; ];
taps = [ taps = [
"koekeishiya/formulae" "koekeishiya/formulae"

17
nix-darwin/tex.nix Normal file
View File

@ -0,0 +1,17 @@
{ pkgs, ... }:
pkgs.texlive.combine {
inherit (pkgs.texlive) scheme-medium
latexmk
amsmath
cancel
hyphenat
datetime2
makecell
tikzmark
tcolorbox
environ
tikzfill
pdfcol
llncs
;
}