From: "Samuel Banya" <sbanya@fastmail.com>
To: "Emanuel Berg" <help-gnu-emacs@gnu.org>
Subject: Question Regarding Creating A Random Buffer For Keybinding Reminders / Attempt To Do Via A Reminder Hydra
Date: Sun, 17 Apr 2022 10:43:54 -0400 [thread overview]
Message-ID: <fec26c25-0cb5-408f-8fb4-979cd5328d61@www.fastmail.com> (raw)
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
_<s tab_: enable source code based yasnippet template for Org Mode
_<b tab_: enable bash code based yasnippet template for Org Mode
_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
next reply other threads:[~2022-04-17 14:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-17 14:43 Samuel Banya [this message]
2022-04-17 15:32 ` Question Regarding Creating A Random Buffer For Keybinding Reminders / Attempt To Do Via A Reminder Hydra Samuel Banya
2022-04-17 16:36 ` [External] : " Drew Adams
2022-04-17 18:55 ` Eduardo Ochs
2022-04-28 16:42 ` Samuel Banya
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fec26c25-0cb5-408f-8fb4-979cd5328d61@www.fastmail.com \
--to=sbanya@fastmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.