From f979a8a98e40f5086774136a0a55fe7252bee182 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 13 Jan 2023 09:29:11 -0600 Subject: [PATCH] setting environment variables right --- README.org | 5 ++++- init.el | 21 +-------------------- 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/README.org b/README.org index f9e73c2d..22586ec5 100644 --- a/README.org +++ b/README.org @@ -336,14 +336,17 @@ I am currently using NixOS. In order for emacs to have access to certain program (setenv "NIX_PROFILES" "${pkgs.lib.concatStringsSep " " config.environment.profiles}") (setenv "NIX_REMOTE" "daemon") (setenv "NIX_USER_PROFILE_DIR" "/nix/var/nix/profiles/per-user/%u") +(setenv "") ;; (load "site-paths" t) (setenv "CC" "/run/current-system/sw/bin/gcc") (setenv "CXX" "/run/current-system/sw/bin/g++") +(setenv "QT_AUTO_SCREEN_SCALE_FACTOR" "1") +(setenv "QT_SCALE_FACTOR" "1") #+end_src Also due to using greetd, emacs isn't started with the environment from the system, so let's make sure it knows which wayland display we are using #+begin_src emacs-lisp -(setenv "WAYLAND_DISPLAY" "wayland-1") +(setenv "WAYLAND_DISPLAY" "wayland-0") #+end_src #+RESULTS: diff --git a/init.el b/init.el index cb2611cd..7e41ba95 100644 --- a/init.el +++ b/init.el @@ -148,7 +148,7 @@ (which-key-mode) :defer 1) -(setenv "WAYLAND_DISPLAY" "wayland-1") +(setenv "WAYLAND_DISPLAY" "wayland-0") (executable-find "ssh") (setq ispell-program-name "hunspell" @@ -2520,22 +2520,3 @@ interfere with the default `bongo-playlist-buffer'." gcmh-verbose nil)) (setq warning-suppress-types '((comp))) -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(package-selected-packages - '(ement vterm magit pdf-tools consult-eglot command-log-mode doom-modeline doom-themes rainbow-delimiters smartparens aggressive-indent adaptive-wrap which-key exec-path-from-shell no-littering tree-sitter-langs rustic evil-collection general evil-escape evil-surround evil-org org-super-agenda org-roam-ui org-present org-modern org-re-reveal-ref org-re-reveal-citeproc ox-reveal oer-reveal ox-spectacle unicode-fonts emojify undo-tree visual-fill-column toc-org pulsar vertico marginalia all-the-icons-completion embark-consult corfu orderless cape devdocs yasnippet tempel projectile evil-avy ace-link ace-window helpful format-all web-mode lua-mode nix-mode cmake-mode fennel-mode yaml-mode docker docker-tramp fish-mode qml-mode csv-mode ob-restclient dart-mode flutter hover direnv all-the-icons-dired dired-single dired-rainbow diredfl dired-rsync fd-dired ledger-mode org-msg calfw calfw-org calfw-ical org-caldav org-wild-notifier sly nov elfeed-org bongo emms transmission hass pass plz taxy-magit-section svg-lib mastodon qrencode gcmh use-package esh-autosuggest)) - '(pdf-misc-print-program "/usr/bin/lpr") - '(pdf-misc-print-program-args '("-o media=Letter" "-o fitplot")) - '(safe-local-variable-values - '((eval setq truncate-lines t) - (eval setq visual-fill-column-mode nil) - (eval toggle-truncate-lines nil)))) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(org-modern-tag ((t :background "#9aedfe" :foreground "#282a36"))))