diff options
author | Yuchen Pei <id@ypei.org> | 2023-10-10 00:58:54 +1100 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2023-10-10 00:58:54 +1100 |
commit | 098928e78521f01ae08656c0979a0e27d5178933 (patch) | |
tree | 0d8b4a99c3d320df85f6cff620334c9a763b5267 | |
parent | 9525a0213e2c4f1b474898587ff3cc50f3a97fdd (diff) |
Revert "Move ange-ftp-try-passive-mode to bom.el"
This reverts commit 19d4d969af74540c60b555cd23bdce07e701aa3c.
-rw-r--r-- | bom.el | 3 | ||||
-rw-r--r-- | init.el | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -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))) @@ -34,3 +34,5 @@ (unless package-archive-contents (package-refresh-contents)) (package-install 'web-server)) + +(setq ange-ftp-try-passive-mode t) |