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! "<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
** Font settings

View File

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

View File

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

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