From 948279089127fc5d12e6973938403622972fc250 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Wed, 4 Dec 2024 13:42:55 -0800 Subject: [PATCH] fix: LaTeX and JIS keyboard support. Remove karabiner --- doom/config.org | 4 ++++ nix-darwin/configuration.nix | 16 +++++++++++++--- nix-darwin/homebrew.nix | 2 ++ nix-darwin/tex.nix | 17 +++++++++++++++++ 4 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 nix-darwin/tex.nix diff --git a/doom/config.org b/doom/config.org index 3079e2e..0dba9c3 100644 --- a/doom/config.org +++ b/doom/config.org @@ -160,6 +160,10 @@ Modifications to the default key bindings to mimic spacemacs (map! :nvi "C" nil) ; remove this one weird binding (map! "" #'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 ** Font settings diff --git a/nix-darwin/configuration.nix b/nix-darwin/configuration.nix index 11dcdc3..378bca2 100644 --- a/nix-darwin/configuration.nix +++ b/nix-darwin/configuration.nix @@ -2,7 +2,17 @@ tex = pkgs.texlive.combine { inherit (pkgs.texlive) scheme-medium latexmk - amsmath; + amsmath + cancel + hyphenat + datetime2 + makecell + tikzmark + tcolorbox + environ + tikzfill + pdfcol + ; }; in { @@ -25,7 +35,7 @@ in rustup elan poetry - tex + (import ./tex.nix { inherit pkgs; }) cmake ispell @@ -39,7 +49,7 @@ in # Auto upgrade nix package and the daemon service. services = { nix-daemon.enable = true; - karabiner-elements.enable = true; + #karabiner-elements.enable = true; sketchybar = { enable = true; }; diff --git a/nix-darwin/homebrew.nix b/nix-darwin/homebrew.nix index b958466..7a9250a 100644 --- a/nix-darwin/homebrew.nix +++ b/nix-darwin/homebrew.nix @@ -40,6 +40,7 @@ "slack" "discord" "zoom" + "zulip" # Browsing "firefox" @@ -58,6 +59,7 @@ # Fonts "font-noto-mono" + "font-source-code-pro" ]; taps = [ "koekeishiya/formulae" diff --git a/nix-darwin/tex.nix b/nix-darwin/tex.nix new file mode 100644 index 0000000..0ece121 --- /dev/null +++ b/nix-darwin/tex.nix @@ -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 + ; +}