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: Re: Question Regarding Creating A Random Buffer For Keybinding Reminders / Attempt To Do Via A Reminder Hydra Date: Thu, 28 Apr 2022 12:42:33 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1976"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27 To: "Emanuel Berg" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 28 18:44:27 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 1nk7Fg-0000DY-Hj for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 28 Apr 2022 18:44:24 +0200 Original-Received: from localhost ([::1]:50292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nk7Ff-0004Q3-DI for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 28 Apr 2022 12:44:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nk7EP-0004H5-8P for help-gnu-emacs@gnu.org; Thu, 28 Apr 2022 12:43:05 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:34693) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nk7EH-000551-VY for help-gnu-emacs@gnu.org; Thu, 28 Apr 2022 12:43:00 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id F3DFB5C0061 for ; Thu, 28 Apr 2022 12:42:54 -0400 (EDT) Original-Received: from imap50 ([10.202.2.100]) by compute5.internal (MEProxy); Thu, 28 Apr 2022 12:42:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1651164174; x=1651250574; bh=off8l1MVVD g+J0PfRHkXo35TCzFtIeQueQV+nIuP07U=; b=KITu52zQhORhZZzCRSpfdE4qip e0fPIQ4yf3cVC1EWvER3mKe62VCJ81+fP+V94tQF40hiqr5NhYW7qGzRv17lgx1v ETYUiHH2ulByqnrO7N4o9RnVsZXWlwr5SyurhBmiyNnzuEMWSMF++lmCMAruV2R6 dHtV3jg6sx0zDoF3EWcBUcpupJjxUjVi6i23C2Ya6Qj/GDAWwFZ+D5ix30enFZxy rgAv/aXaSXLdzj3Ar29KwRQHMZb/LOJbPCePTQPtAibNPJ07PJM7b867+tufhHYf 0H+ilSG+cYlL5sslluItFu7kN34XcLw715LipT++s6gSqGNd4PR9OZ1L8kSw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1651164174; x= 1651250574; bh=off8l1MVVDg+J0PfRHkXo35TCzFtIeQueQV+nIuP07U=; b=N lEM/7aeLlxhg+eQC8q3ZtRAHSMV1dmYV62xLuCtyC4AcwMMkzEdh3jjy85dkGanp eaQQfmt+0x+jnHcNl/9us10kPRG90aZBvl2lQiLBgeTHBioIgAgZcnBjFQ74zSYS 5CDci5wkPIaZPpKMaVo2u8gkzwjwe5B2jwETM6OnUn7gmGSM7YZJT1DHTXmADNW4 g0EoIxgmhj4xX2fk72aaiNXWRrQZ1fVoB55e1M5ziqmmoA2xdRLRcbuyCYkFlh8s ZvHydvU7cwd5b7FsTAhLwORQrTQ5OHnR+wictMY/dQ8ZK+Ww48K1ko94IAat3M5T SVUiGQPYpihxaonJrvH3g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudejgddutdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerredtnecuhfhrohhmpedfufgrmhhuvghluceurghnhigrfdcuoehssggrnhihrges fhgrshhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeegffehjedtffegieehge efteekhfejtdffteegffetgeeiudekudevueeftdfhleenucffohhmrghinhepughprghs thgvrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshgsrghnhigrsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id BF99C192008E; Thu, 28 Apr 2022 12:42:54 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: Received-SPF: pass client-ip=66.111.4.29; envelope-from=sbanya@fastmail.com; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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:137070 Archived-At: Hey there, Although 'Org-Menu' is really cool, I actually am looking to still make a Hydra that is a non functional hydra. Meaning, that it would be able to just popup a context menu to remind me of my own personal keybindings in a transient menu like that, but not actually RUN any of the functions either. Hoping someone else might have another idea for this :) Thanks, Sam On Sun, Apr 17, 2022, at 10:43 AM, Samuel Banya wrote: > Hey there, > > So I have several Hydras and other very config centric keybindings throughout my Emacs config, to the point where I often forget about these until I view them in my Org Mode based config. > > I tried to create a related Hydra as more of a 'reminder', but its now complaining since the actual keybindings aren't valid. > > Is there a better method of displaying a reminder for custom keybindings so that I can personally choose how I want to present the entire buffer with reminders? > > Here's what I have so far, but I've since commented it out because all I receive are warnings that the keybindings present aren't valid, which is understandable since the Hydra itself is looking for the user to actually hit the keybindings themselves, even though I'm only showing them to the user for reminder purposes: > > FROM CONFIG: > #+begin_src emacs-lisp > (defhydra hydra-remindkeys (:color pink > :hint nil) > " > ^Keybindings^ > ^^^^^^^^^^----------------------------- > _C-M-z_: Enable 'evil' and 'evil-collection' for Vim keybindings > _S-Return_: launch 'vterm' > _C-x w_: launch 'ranger.el' > _f12_: toggle full screen for Macbook workaround > _C-=_: rotate buffers > _f7 and S-f7_: start 'org-tree-slide-mode' for Org Mode based presentations, and stop them > _f6_: insert YouTube video link, and return the YouTube video name into pasted buffer > _C-x b_: enable iBuffer to check available buffers > _C-x C-b_: enable 'helm-buffers-list' to check list of available buffers to switch to via a Helm Mode prompt > _f2_: enable zoom-based Hydra to zoom in and out of available Emacs buffer > _C-c a_: enable 'Org-Agenda' to view agenda of tasks > _C-!_: enable color-theme based Hydra to change color themes on the fly > _M-s_: jump to a specific word in a buffer with the 'avy-goto-word-0' function > _M-l_: jump to a specific line in a buffer with the 'avy-goto-line' function > _M-y_: view the copy and paste clipboard via 'popup-kill-ring' package > _C-s_: search in a buffer with Counsel or Swiper via the 'counsel-grep-or-swiper' function > _C-c q_: first mark a section of a buffer, and then enable this to see where the highlighted section appears next to edit all instances simultaneously > _C-q_: enables 'expand-region' to expand a given region of text > _C-c C-0_: enables multiple cursors with 'mc/edit-lines' function > _C->_: while 'mc/edit-lines' is enabled, go to the next line > _C-<_: while 'mc/edit-lines' is enabled, go to the previousline > _C-c C-<_: while 'mc/edit-lines' is enabled, mark all of the lines that are like this > _C-M-s-k_: kill all buffers with 'kill-all-buffers' function, useful for end-of-day buffer cleanup > _C-c w l_: copy the entire line of text with 'copy-whole-line' function > _C-x k_: kill the current buffer with the 'kill-current-buffer' function > _s-e_: edit the buffer as the 'sudo' user with the 'sudo-edit' function > _C-c w w_: kill an entire word with the 'kill-whole-word' function > _C-$_: enable desktop based hydra to save, clear, or revert the current desktop of Emacs buffers via the 'hydra-desktop' hydra > _C-c l_: enable lsp-mode for programming based auto-completion > _ _ _C-h M-a_: show the major mode keybindings with the 'discover-my-major' function > _C-h M-o_: show the minor mode keybindings with the 'discover-my-mode' function > _M-x free-keys_: show the available keybindings to use for later use in my Emacs config > _M-i_: hover over a word, and find that word in any open buffer on screen via the 'helm-swoop' function > _M-I_: hover over a word, and jump to the next instance of the word in the buffer via the 'helm-swoop-back-to-last-point' function > _C-c M-i_: hover over a word, and find the next file that contains that specific word via the 'helm-multi-swoop' function > _C-x M-i_: hover over a word, and find the next file that contains that specific word via the 'helm-multi-swoop-all' function > _C-c e_: edit Emacs config at any time > _C-c r_: reload Emacs config at any time > _C-c C-p C-b_: add the entire current buffer to an online webpaste, specifically at dpaste.org > _C-c C-p C-r_: add the selected region to an online webpaste, specifically at dpaste.org > _C-c C-p C-p_: add the selected region or buffer to an online webpaste, specifically at dpaste.org > _C-c s_: search for a specific issue on Stack Exchange aka StackOverflow > _M-x ytdl_: download YouTube videos directly from Emacs > " > ("q" nil)) > > ;; (global-set-key (kbd "C-=") 'hydra-rotate/body) > #+end_src > > > Thanks, > > Sam