diff options
author | Alan Pearce | 2014-04-21 19:32:02 +0100 |
---|---|---|
committer | Alan Pearce | 2014-04-21 19:32:02 +0100 |
commit | 1eff3e67ebf51045e13220e4685e9b691d267a7c (patch) | |
tree | 338b1574aa990972718c07c8cc762295bb6e3cc5 | |
parent | cf67810969ec397d34c60fecbf1070f8cfc44163 (diff) | |
download | dotfiles-1eff3e67ebf51045e13220e4685e9b691d267a7c.tar.lz dotfiles-1eff3e67ebf51045e13220e4685e9b691d267a7c.tar.zst dotfiles-1eff3e67ebf51045e13220e4685e9b691d267a7c.zip |
Emacs: remove "env/" function set
-rw-r--r-- | tag-emacs/emacs.d/init.el | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index ce0727e..21835eb 100644 --- a/tag-emacs/emacs.d/init.el +++ b/tag-emacs/emacs.d/init.el @@ -19,36 +19,6 @@ ;;;; 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" |