setting environment variables right

This commit is contained in:
Chris Cochrun 2023-01-13 09:29:11 -06:00
parent 3e39c1ae13
commit f979a8a98e
2 changed files with 5 additions and 21 deletions

View file

@ -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_PROFILES" "${pkgs.lib.concatStringsSep " " config.environment.profiles}")
(setenv "NIX_REMOTE" "daemon") (setenv "NIX_REMOTE" "daemon")
(setenv "NIX_USER_PROFILE_DIR" "/nix/var/nix/profiles/per-user/%u") (setenv "NIX_USER_PROFILE_DIR" "/nix/var/nix/profiles/per-user/%u")
(setenv "")
;; (load "site-paths" t) ;; (load "site-paths" t)
(setenv "CC" "/run/current-system/sw/bin/gcc") (setenv "CC" "/run/current-system/sw/bin/gcc")
(setenv "CXX" "/run/current-system/sw/bin/g++") (setenv "CXX" "/run/current-system/sw/bin/g++")
(setenv "QT_AUTO_SCREEN_SCALE_FACTOR" "1")
(setenv "QT_SCALE_FACTOR" "1")
#+end_src #+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 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 #+begin_src emacs-lisp
(setenv "WAYLAND_DISPLAY" "wayland-1") (setenv "WAYLAND_DISPLAY" "wayland-0")
#+end_src #+end_src
#+RESULTS: #+RESULTS:

21
init.el
View file

@ -148,7 +148,7 @@
(which-key-mode) (which-key-mode)
:defer 1) :defer 1)
(setenv "WAYLAND_DISPLAY" "wayland-1") (setenv "WAYLAND_DISPLAY" "wayland-0")
(executable-find "ssh") (executable-find "ssh")
(setq ispell-program-name "hunspell" (setq ispell-program-name "hunspell"
@ -2520,22 +2520,3 @@ interfere with the default `bongo-playlist-buffer'."
gcmh-verbose nil)) gcmh-verbose nil))
(setq warning-suppress-types '((comp))) (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"))))