From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Samuel Banya" Newsgroups: gmane.emacs.help Subject: Question Regarding Why Hydra For SSH Connections Isn't Working Date: Mon, 07 Feb 2022 16:56:00 -0500 Message-ID: <3d984f51-7ad0-498b-a588-f9a387a3c7e2@www.fastmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13462"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-4748-g31a5b5f50e-fm-cal2020-20220204.001-g31a5b5f5 To: "Emanuel Berg" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 07 22:57:21 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nHC0f-0003Kt-6o for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 22:57:21 +0100 Original-Received: from localhost ([::1]:39844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHC0d-0002AN-I7 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Feb 2022 16:57:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHBzq-00029R-9i for help-gnu-emacs@gnu.org; Mon, 07 Feb 2022 16:56:30 -0500 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:34889) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHBzn-0007NA-BO for help-gnu-emacs@gnu.org; Mon, 07 Feb 2022 16:56:29 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 37E3F320221C for ; Mon, 7 Feb 2022 16:56:22 -0500 (EST) Original-Received: from imap49 ([10.202.2.99]) by compute2.internal (MEProxy); Mon, 07 Feb 2022 16:56:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm2; bh=t Uj+6301PzBBNgStijYfIABwDMjGGhLQUo9E4mQO1Ks=; b=ckrc6eEGTii2d6t7/ c+SVORtIoHoQCvkO3fDRGuCFRw6iRpwuMpMVFdjnIVUu6V2LaVSovq1tcrL8u8cL ocKilJwsuKZtnF8IHqAl22DlLSHXqkiYTcXk4OUlzmbX2or5zT/jex8o2ol10b8r ekjI40oKOPcD7/Mw528rD7LDvKVgL4WmnuZyPJlcmrAjOCic00gFPjHnUm4j4b2A c0PAwIkEx6q9H4trhLBG+xYOizHxWOc2rv5SrfLRCponbCR/yr9k5NTsB3+Xm4G2 0lFXKSV5UfQfxmkZSOPsGDdTd+iFEiLpPftu4xDcAqzqwS+cK3zbXjNr3K8v6P5b y558A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=tUj+6301PzBBNgStijYfIABwDMjGGhLQUo9E4mQO1 Ks=; b=b7GZVOKPflvP4tKoyA1x3NXtcKFlIBDin9NUNeygHiXltIf1r2Qr/n19P DV0ikCsYS27zwvXnF/NcBsr0sfG9dHXpC2BvUu/L7OQnp7YliA90tDIqG2W8iV/u IELvQ9g2mrEMMroff21G1z3dKlQeWd+w4yo4Dfw9/pn6c801zM231nGE6YHgnbqz sLK9y2nNCodQFE9aMqJPvjc9+npStQykX4zYL+fOLIhavMHIFJjuAF/jJML0PZvY PBey+BtxJCfQ+fuqoDkKulz+6RH76v477q7JfCkYGwT+aZwLmp1jGHVIkEDwIdVv AzpmeVoh7gn6e5kMHIpSwqWYRTbDQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrheehgdduhedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlfeehmdenucfjughrpefofg ggkfffhffvufgtsegrtderreerredtnecuhfhrohhmpedfufgrmhhuvghluceurghnhigr fdcuoehssggrnhihrgesfhgrshhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpe etvefggfegkeetheeukeehueeufeehfeekgefgleeftefgieegkeeiudeiffefjeenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehssggrnhihrg esfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 75B44F6007E; Mon, 7 Feb 2022 16:56:20 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface Received-SPF: pass client-ip=64.147.123.21; envelope-from=sbanya@fastmail.com; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -9 X-Spam_score: -1.0 X-Spam_bar: - X-Spam_report: (-1.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_OTHER_BAD_TLD=1.769, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135810 Archived-At: Hey there, * * *Can anyone help me figure out why my Hydra isn't working:* ` (if (equal (system-name) '("notestation" "fossastation"))` ` ;; Create separate connection based functions to later call within the 'hydra-connect' hydra:` ` (defun ssh-into-musimatic-sam ()` ` (interactive)` ` (find-file "/ssh:sam@musimatic.xyz:/var/www/musimatic"))` ` (defun ssh-into-musimatic-git ()` ` (interactive)` ` (find-file "/ssh:git@musimatic.xyz:/var/www/musimatic")) ` ` (defun ssh-into-musimatic-root ()` ` (interactive)` ` (find-file "/ssh:root@musimatic.xyz:/var/www/musimatic"))` ` (defun ssh-into-sambanya-sam ()` ` (interactive)` ` (find-file "/ssh:sam@sambanya.com:/var/www/sambanya"))` ` (defun ssh-into-sambanya-root ()` ` (interactive)` ` (find-file "/ssh:root@sambanya.com:/var/www/sambanya"))` ` (defun ssh-into-fedoraserver-sam ()` ` (interactive)` ` (find-file "/ssh:sam@fedoraserver:/media/REDHDD"))` ` (defhydra hydra-connect (:color pink` ` :hint nil)` ` "` ` ^Connect^` ` ^^^^^^^^^^-----------------------------` ` _a_: connect to musimatic.xyz as sam user` ` _b_: connect to musimatic.xyz as git user` ` _c_: connect to musimatic.xyz as root user` ` _d_: connect to sambanya.com as sam user` ` _e_: connect to sambanya.com as root user` ` _f_: connect to fedoraserver as sam user` ` _q_: quit` ` "` ` ("a" ssh-into-musimatic-sam)` ` ("b" ssh-into-musimatic-git) ` ` ("c" ssh-into-musimatic-root)` ` ("d" ssh-into-sambanya-sam)` ` ("e" ssh-into-sambanya-root)` ` ("f" ssh-into-fedoraserver-sam)` ` ("q" nil))` ` (global-set-key (kbd "M-n") 'hydra-connect/body))` `*CONTINUED:*` `*When I try to run the above hydra, and use the 'a' key, I get the following message:*` Wrong type argument: commandp, ssh-into-musimatic-sam `**` `Thanks!` `Sam`