diff --git a/doom-emacs/.doom.d/config.el b/doom-emacs/.doom.d/config.el index 265a245..6baa1ed 100644 --- a/doom-emacs/.doom.d/config.el +++ b/doom-emacs/.doom.d/config.el @@ -24,7 +24,19 @@ (setq fancy-splash-image "/home/minhradz/.doom.d/marivector.png") -(setq doom-theme 'doom-nord) +(defun synchronize-theme () +(let* ((light-theme 'doom-nord-light) + (dark-theme 'doom-nord) + (start-time-light-theme 6) + (end-time-light-theme 16) + (hour (string-to-number (substring (current-time-string) 11 13))) + (next-theme (if (member hour (number-sequence start-time-light-theme end-time-light-theme)) + light-theme dark-theme))) + (when (not (equal doom-theme next-theme)) + (setq doom-theme next-theme) + (load-theme next-theme t)))) + +(run-with-timer 0 900 'synchronize-theme) (with-eval-after-load 'doom-themes (doom-themes-treemacs-config)) @@ -152,5 +164,3 @@ (map! :leader :desc "Insert node immediately" "n r I" #'org-roam-node-insert-immediate) - -(setq inhibit-x-resources t) diff --git a/doom-emacs/.doom.d/init.el b/doom-emacs/.doom.d/init.el index 29e7fa5..c52afed 100644 --- a/doom-emacs/.doom.d/init.el +++ b/doom-emacs/.doom.d/init.el @@ -150,7 +150,7 @@ ;;php ; perl's insecure younger brother ;;plantuml ; diagrams for confusing people more ;;purescript ; javascript, but functional - python ; beautiful is better than ugly + (python +lsp +pyright +pyenv +poetry) ;;qt ; the 'cutest' gui framework ever ;;racket ; a DSL for DSLs ;;raku ; the artist formerly known as perl6 diff --git a/lvim/.config/lvim/config.lua b/lvim/.config/lvim/config.lua index eb3c77f..86279eb 100644 --- a/lvim/.config/lvim/config.lua +++ b/lvim/.config/lvim/config.lua @@ -37,7 +37,8 @@ local linters = require("lvim.lsp.null-ls.linters") formatters.setup({ { exe = "black", - args = {}, + filetypes = { "python" }, + args = { "--quiet", "--fast", "-" }, }, { exe = "clang_format",