From 9d3bdf91790255d5e2d18c2a1bf4df3fd84ec60e Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Tue, 15 Feb 2022 22:09:02 +0100 Subject: [PATCH] Helper function for detecting my work system --- config.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config.org b/config.org index f993a05..47453b8 100644 --- a/config.org +++ b/config.org @@ -26,6 +26,16 @@ For Microsoft(R) Windows(R) users it is highly adviced to set the =HOME= environ Settings for Emacs in general as well as for my personal setup. +** System Detection + +My work machine is called “knuth” and there is some configuration which I only want there. + +#+begin_src emacs-lisp +(defun mmk2410/work () + "Return t if machine is my work machine" + (string-equal (system-name) "knuth")) +#+end_src + ** Personal Information #+begin_src emacs-lisp