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: Sun, 17 Apr 2022 11:32:09 -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="6320"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.7.0-alpha0-387-g7ea99c4045-fm-20220413.002-g7ea99c40 To: "Emanuel Berg" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 17 17:33:29 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 1ng6u0-0001SZ-EU for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 Apr 2022 17:33:28 +0200 Original-Received: from localhost ([::1]:50530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ng6ty-0003ga-S1 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 Apr 2022 11:33:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng6t8-0003gR-4B for help-gnu-emacs@gnu.org; Sun, 17 Apr 2022 11:32:34 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:57011) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ng6t5-0001Tq-CS for help-gnu-emacs@gnu.org; Sun, 17 Apr 2022 11:32:33 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 797B85C00E6 for ; Sun, 17 Apr 2022 11:32:30 -0400 (EDT) Original-Received: from imap50 ([10.202.2.100]) by compute5.internal (MEProxy); Sun, 17 Apr 2022 11:32:30 -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=1650209550; x=1650295950; bh=QQ+WImZhQq rSfXKmlky0CPj7Q44WHhPpjpM+to0jZKI=; b=ikx5iJFNDYt+gzeN92mLr7V8/T fQxTNTvcUt0JzSiIZhLbwBSTG+ev8vyWOR2S4upGJ1yxhJfSg/XVhQt/5jD1nk6l Q4i5VxsAh0pnyknMSCAgYVh5ogsLskx0wx2rPN8lHeLJE5nPnW9+LXQTv0mhmNXD 6aOYtJTYCE/+65QA3ii8Vr6NlngkDvYhVg+BrK5BUfMeS99nYlJcf2m1OnQWSfY8 QGCICt2SSFtRb0zI9sQKdxdax3o9kGTvDqld8NJzGJcPp24xv1W/5ahPBU5kIC1d 6sqzOQcgJeUysDqgM+qW5hEH9p8o81O/04umCrTv6rESjMCupCUJmfpFAAYg== 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=1650209550; x= 1650295950; bh=QQ+WImZhQqrSfXKmlky0CPj7Q44WHhPpjpM+to0jZKI=; b=v SKPLAap8/r9xxnbv9AkDGK9/IpxI04uV6j2L4hZ8eoMkXBrVV4GEmG0HVccLhhZB c2NQHTgx9usjkNwc1ATBcXeiLMyImJatCoRjg/mDS/vO9P8T1MS36f9obCS3Vmno eosuxgu997WyCSWC1q5TIMInO9EIaN7f3DGP6haNsJOgarfs9cq6LVA/okcxrKzw bWOXvgezd8AolrkjdDa4u1hoMbig6TNjO/wIbUQcyAq1F3u9yeI3ygCSub+IyD16 K1qsWyv/HqjxaIqRWjPS3HjtOhL63zRu5xX86MSvemDXVy9VaEFIbaZY9D10br2G IruFfwGdRWxr3hyk6FtsA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudelledgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerredtnecuhfhrohhmpedfufgrmhhuvghluceurghnhigrfdcuoehssggrnhihrges fhgrshhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpedvgfelffduhfeutdffud eljefggedvheejleetudeuvdeihfdtfeegheektefgfeenucffohhmrghinhepghhnuhdr ohhrghdpughprghsthgvrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepshgsrghnhigrsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3A98A1920089; Sun, 17 Apr 2022 11:32:30 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: Received-SPF: pass client-ip=66.111.4.26; envelope-from=sbanya@fastmail.com; helo=out2-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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:136933 Archived-At: Should I use (display-buffer) with some sort of hook function to convert that buffer into an Org Mode doc buffer accordingly? https://www.gnu.org/software/emacs/manual/html_node/emacs/Displaying-Buffers.html 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 >