Following on our series of mnemonic keymaps, we arrive on the
launcher-map. Where the toggle-map was designed for toggling values
and minor-modes we only use every once in a while, the launcher-map
runs those standalone features of Emacs that also don't always see the
light of day.
To remember these keybinds, think of “Emacs launch calc” for instance.
(define-prefix-command'launcher-map);; `C-x l' is `count-lines-page' by default. If you;; use that, you can try s-l or <C-return>.(define-keyctl-x-map"l"'launcher-map)(global-set-key(kbd"s-l")'launcher-map)(define-keylauncher-map"p"#'paradox-list-packages)(define-keylauncher-map"c"#'calc)(define-keylauncher-map"d"#'ediff-buffers)(define-keylauncher-map"f"#'find-dired)(define-keylauncher-map"g"#'lgrep)(define-keylauncher-map"G"#'rgrep)(define-keylauncher-map"h"#'man); Help(define-keylauncher-map"i"#'package-install-from-buffer)(define-keylauncher-map"n"#'endless/visit-notifications)(define-keylauncher-map"s"#'shell)
calc, man, list-packages… I use these features, on average, once or
twice every other moon. An intuitive keymap is exactly what I need to always
remember their keybinds and not have to M-x their whole name.
Update <30 Nov 2015>
Changed the n key from nethack to endless/visit-notifications, as per the
new post.
Launcher Keymap for Standalone Features
13 Sep 2014, by Artur Malabarba.Mnemonic Keymaps post series
Following on our series of mnemonic keymaps, we arrive on the launcher-map. Where the toggle-map was designed for toggling values and minor-modes we only use every once in a while, the launcher-map runs those standalone features of Emacs that also don't always see the light of day.
To remember these keybinds, think of “Emacs launch calc” for instance.
calc
,man
,list-packages
… I use these features, on average, once or twice every other moon. An intuitive keymap is exactly what I need to always remember their keybinds and not have to M-x their whole name.Update <30 Nov 2015>
Changed the
n
key fromnethack
toendless/visit-notifications
, as per the new post.Tags: keymap, intuitive, keybind, init.el, emacs,
Prettify your Quotation Marks »
« Swaping Variables with cl-lib
Related Posts
A few paredit keys that take over the world in keybind
Fill and unfill paragraphs with a single key in keybind
Disable Mouse only inside Emacs in keybind
Content © 2019, All rights reserved. Icons under CC3.0.