From 4a370c2d61cd63209730f84d99dace71ce8f597a Mon Sep 17 00:00:00 2001 From: earnest ma Date: Mon, 2 Jan 2023 10:58:25 -0500 Subject: [PATCH] Add nim and Doom Emacs config --- doom/.config/doom/config.el | 2 ++ doom/.config/doom/init.el | 2 +- zsh/.zprofile | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index f780545..c9e1478 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -66,6 +66,8 @@ ;; :config ;; (add-hook 'redacted-mode-hook (lambda () (read-only-mode (if redacted-mode 1 -1))))) +(add-hook 'nim-mode-local-vars-hook #'lsp!) + (use-package! subed :config ;; This assures evil does not conflict with subed keybinds. diff --git a/doom/.config/doom/init.el b/doom/.config/doom/init.el index c53dbcc..7d4b6ff 100644 --- a/doom/.config/doom/init.el +++ b/doom/.config/doom/init.el @@ -150,7 +150,7 @@ ;;ledger ; be audit you can be ;;lua ; one-based indices? one-based indices markdown ; writing docs for people to ignore - ;;nim ; python + lisp at the speed of c + nim ; python + lisp at the speed of c ;;nix ; I hereby declare "nix geht mehr!" ;;ocaml ; an objective camel org ; organize your plain life in plain text diff --git a/zsh/.zprofile b/zsh/.zprofile index bdabd7b..607d5f3 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -33,6 +33,9 @@ fi # rust [ -f $HOME/.cargo/env ] && source $HOME/.cargo/env +# nim +export PATH=$HOME/.nimble/bin:$PATH + # Preferences export CALIBRE_USE_SYSTEM_THEME=0 export CALIBRE_USE_DARK_PALETTE=1