From ce4ea88467bb334c2a4d8b3e0d97542ac8f6ba5b Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sat, 9 Dec 2023 19:06:26 -0700 Subject: [PATCH] update emacs font and whatnot --- .emacs.d/settings.org | 19 +++++++++---------- scripts/machine-specific-zsh/bocchi.zsh | 10 ++++++++++ scripts/tunnel | 3 +++ 3 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 scripts/machine-specific-zsh/bocchi.zsh create mode 100755 scripts/tunnel diff --git a/.emacs.d/settings.org b/.emacs.d/settings.org index e9d6b18..45c97f1 100644 --- a/.emacs.d/settings.org +++ b/.emacs.d/settings.org @@ -94,7 +94,7 @@ #+END_SRC ** Font #+BEGIN_SRC emacs-lisp - (let ((font "CozetteVector-13")) + (let ((font "JetBrains Mono-8:style=Regular")) (set-face-attribute 'default nil :font font) (set-frame-font font nil t)) #+END_SRC @@ -258,7 +258,6 @@ must run ~(all-the-icons-install-fonts)~ and ~(nerd-fonts-install-fonts)~ (use-package lsp-mode :ensure t :init - ;; set prefix for lsp-command-keymap (few alternatives - "C-l", "C-c l") (setq lsp-keymap-prefix "C-c l") :hook ((python-mode . lsp) ;; pip install python-lsp-server pyls-black pyls-isort pyls-mypy (elixir-mode . lsp) @@ -266,15 +265,15 @@ must run ~(all-the-icons-install-fonts)~ and ~(nerd-fonts-install-fonts)~ (java-mode . lsp) (php-mode . lsp) (c-mode . lsp) - (typescript-mode . lsp) ;; npm install -g typescript typescript-language-server + (typescript-mode . lsp) (lsp-mode . lsp-enable-which-key-integration)) - :config (lsp-register-custom-settings - '(("pyls.plugins.pyls_mypy.enabled" t t) - ("pyls.plugins.pyls_mypy.live_mode" nil t) - ("pyls.plugins.pyls_black.enabled" t t) - ("pyls.plugins.pyls_isort.enabled" t t))) + :config (progn + (lsp-register-custom-settings + '(("pyls.plugins.pyls_mypy.enabled" t t) + ("pyls.plugins.pyls_mypy.live_mode" nil t) + ("pyls.plugins.pyls_black.enabled" t t) + ("pyls.plugins.pyls_isort.enabled" t t)))) :commands lsp) - #+END_SRC ** Languages *** Common Lisp @@ -348,7 +347,7 @@ After installing the ~rust-analyzer~, the following can be used: (eldoc-mode +1) (tide-hl-identifier-mode +1) (company-mode +1)) - + (use-package tide :ensure t :after (typescript-mode company flycheck) diff --git a/scripts/machine-specific-zsh/bocchi.zsh b/scripts/machine-specific-zsh/bocchi.zsh new file mode 100644 index 0000000..9a6e260 --- /dev/null +++ b/scripts/machine-specific-zsh/bocchi.zsh @@ -0,0 +1,10 @@ +export PATH=$PATH:/home/lizzy/myemacs/28.1/bin +export PATH=$PATH:/home/lizzy/.cargo/bin +export PATH=$PATH:/home/lizzy/.local/bin +export PATH=$PATH:/home/lizzy/.roswell/bin + +source /etc/profile.d/devkit-env.sh + +alias emacs="emacsclient -nw" + +. "$HOME/.asdf/asdf.sh" diff --git a/scripts/tunnel b/scripts/tunnel new file mode 100755 index 0000000..726fcb3 --- /dev/null +++ b/scripts/tunnel @@ -0,0 +1,3 @@ +#!/bin/sh + +ssh -f -N -T -R$1:localhost:42069 tunnel.simponic.xyz