;;; -*- lexical-binding: t -*- ;; ;; this file: ;; https://dataswamp.org/~incal/emacs-init/w3m/w3m-survivor.el (require 'w3m-search) (require 'cl-lib) (let ((opts "torrent magnet 720p") (show "Survivor") (prompt "episode: ") ) (let ((next 1)) (defun australian-survivor (ep) (interactive (list (read-number prompt next))) (w3m-search w3m-search-default-engine (format "\"S10E%02d\" Australian \"%s\" %s" ep show opts) ) (setq next (1+ ep)) )) (declare-function australian-survivor nil) (defalias 'au #'australian-survivor) (let ((next 1)) (defun us-survivor (ep) (interactive (list (read-number prompt next))) (w3m-search w3m-search-default-engine (format "\"S46E%02d\" \"%s\" %s" ep show opts) ) (setq next (1+ ep)) )) (declare-function us-survivor nil) (defalias 'us #'us-survivor) ) (provide 'w3m-survivor)