summaryrefslogtreecommitdiff
path: root/init.org
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-03-15 12:22:48 +0100
committerRicardo Wurmus <rekado@elephly.net>2023-03-15 12:22:48 +0100
commitfad29ecccf0a0f59911b3fb0bb23eaab81ba52cd (patch)
tree0280d4b7a1fbf8f31efcfc20ea49c693f66e6a52 /init.org
parent4bf2d937ee37b3743511ae854e4c6ce2d3fc48d4 (diff)
Replace equalp with equal.
Diffstat (limited to 'init.org')
-rw-r--r--init.org4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.org b/init.org
index 559bc88..69c289f 100644
--- a/init.org
+++ b/init.org
@@ -569,13 +569,13 @@ TRAMP is a really convenient way to edit files on remote systems from within the
I’m not using this yet. I’d like to figure out how to make TRAMP use =ssh1= as a proxy only when I’m not connected to the institute’s network.
-#+BEGIN_SRC elisp :noweb-ref nil
+#+BEGIN_SRC elisp
(defun at-work-p ()
"Tell me if I’m connected to the network at work."
(with-temp-buffer
(call-process "ip" nil t nil "route" "list" "root" "141.80/16")
;; There is no output when there is no route with this prefix.
- (not (equalp (point-min) (point-max)))))
+ (not (equal (point-min) (point-max)))))
#+END_SRC
* Shell