aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-10-10 00:58:54 +1100
committerYuchen Pei <id@ypei.org>2023-10-10 00:58:54 +1100
commit098928e78521f01ae08656c0979a0e27d5178933 (patch)
tree0d8b4a99c3d320df85f6cff620334c9a763b5267
parent9525a0213e2c4f1b474898587ff3cc50f3a97fdd (diff)
Revert "Move ange-ftp-try-passive-mode to bom.el"
This reverts commit 19d4d969af74540c60b555cd23bdce07e701aa3c.
-rw-r--r--bom.el3
-rw-r--r--init.el2
2 files changed, 3 insertions, 2 deletions
diff --git a/bom.el b/bom.el
index 9570841..06b9784 100644
--- a/bom.el
+++ b/bom.el
@@ -45,8 +45,7 @@
(defun bom-api (state)
"Get weather forecast data of STATE from the BOM FTP."
(if-let ((filename (alist-get (intern (downcase state)) bom-state-files)))
- (let* ((ange-ftp-try-passive-mode t)
- (buffer (find-file-noselect
+ (let* ((buffer (find-file-noselect
(format
"/ftp:anonymous@ftp.bom.gov.au:/anon/gen/fwo/%s.xml"
filename)))
diff --git a/init.el b/init.el
index be9fc06..3c17c7f 100644
--- a/init.el
+++ b/init.el
@@ -34,3 +34,5 @@
(unless package-archive-contents
(package-refresh-contents))
(package-install 'web-server))
+
+(setq ange-ftp-try-passive-mode t)