all repos — nixfiles @ 1eff3e67ebf51045e13220e4685e9b691d267a7c

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

Emacs: remove "env/" function set

Alan Pearce
commit

1eff3e67ebf51045e13220e4685e9b691d267a7c

parent

cf67810969ec397d34c60fecbf1070f8cfc44163

1 file changed, 0 insertions(+), 30 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -19,36 +19,6 @@ :group 'lisp)
;;;; Environment & Location -(defun env/get-location () - "Return the physical location of the system, or `nil' if unknown" - (if (executable-find "netctl") - (catch 'found - (mapc (lambda (line) - (cond - ((string-prefix-p "* home" line) (throw 'found 'home)) - ((string-prefix-p "* work" line) (throw 'found 'work)))) - (process-lines "netctl" "list")) - nil))) - -(defun env/get-system-type () - "Return the type of computer that is running" - (cond - ((string-prefix-p "prefect" system-name) 'desktop) - ((string-prefix-p "server" system-name) 'server) - ((string-prefix-p "sheldon" system-name) 'laptop))) - -(defvar env/location (env/get-location) - "The type of location the system is located in -Values: `work', `home'") - -(defvar env/system-type (env/get-system-type) - "The type of computer Emacs is running on -Values: `desktop', `server', `laptop'") - -(defun env/recheck-location () - (interactive) - (setq env/location (env/get-location))) - (defvar *init-file* (when user-init-file (expand-file-name "init.el"