all repos — nixfiles @ 6c1c601792b1bea7fe0a62a0f22a783991e0d8c1

System and user configuration, managed by nix and home-manager

Emacs: replace string-matches on system name with env/* comparisons

Alan Pearce
commit

6c1c601792b1bea7fe0a62a0f22a783991e0d8c1

parent

976f79bda5a450a4f16ee556849649428bbad5f4

1 file changed, 3 insertions(+), 2 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -290,7 +290,8 @@ (setq smtpmail-smtp-server "external.home"
smtpmail-smtp-service 587) (use-package mu4e - :if (string= system-name "prefect.home.alanpearce.co.uk") + :if (and (eq env/location 'home) + (eq env/system-type 'desktop)) :load-path "/usr/share/emacs/site-lisp/mu4e" :config (progn (setq mu4e-get-mail-command "true"
@@ -1035,7 +1036,7 @@ :config (progn
(bind-key "C-h C-f" #'php-search-documentation php-mode-map) (unbind-key "C-c C-f" php-mode-map) (unbind-key "C-." php-mode-map) - (if (member system-name '("PREFECT" "prefect")) + (if (eq env/location 'home) (setq php-manual-url "http://docs.home/manual/en/")) (add-hook 'php-mode-hook (lambda () (set (make-local-variable 'eldoc-documentation-function) #'my-php-eldoc-function)))