diff options
author | Alan Pearce | 2013-05-15 18:25:34 +0100 |
---|---|---|
committer | Alan Pearce | 2013-05-15 18:25:34 +0100 |
commit | 6c1c601792b1bea7fe0a62a0f22a783991e0d8c1 (patch) | |
tree | 46aa3105cdc3f488d0663e00f5302370d2ed9c78 /emacs/init.el | |
parent | 976f79bda5a450a4f16ee556849649428bbad5f4 (diff) | |
download | nixfiles-6c1c601792b1bea7fe0a62a0f22a783991e0d8c1.tar.lz nixfiles-6c1c601792b1bea7fe0a62a0f22a783991e0d8c1.tar.zst nixfiles-6c1c601792b1bea7fe0a62a0f22a783991e0d8c1.zip |
Emacs: replace string-matches on system name with env/* comparisons
Diffstat (limited to 'emacs/init.el')
-rw-r--r-- | emacs/init.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/emacs/init.el b/emacs/init.el index ebae773b..3fa525bc 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -290,7 +290,8 @@ Values: `desktop', `server', `laptop'") 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 @@ Works with: arglist-cont-nonempty, arglist-close." (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))) |